Skip to content

Commit

Permalink
fix publish crowdin branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Jan 18, 2024
1 parent 1b8d27d commit df268dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,14 @@ jobs:
id: get_crowdin_branch
run: |
output=$(./gradlew crowdinBranch)
version=$(echo $output | awk -F ': ' '{print $2}')
echo "crowdin_branch=$version" >> $GITHUB_OUTPUT
version=$(echo "$output" | grep -oP 'Crowdin branch: \K\d+\.\d+')
if [[ $version =~ ^1\.[0-9]+$ ]]; then
echo "Crowdin branch: $version"
echo "crowdin_branch=$version" >> $GITHUB_OUTPUT
else
echo "Invalid version: $version"
exit 1
fi
publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit df268dc

Please sign in to comment.