Skip to content

Commit

Permalink
fix gradle crowdin version output
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Jan 18, 2024
1 parent 5b6550c commit b3b6f57
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
- name: Determine Crowdin branch
id: get_crowdin_branch
run: |
output=$(./gradlew crowdinBranch -q)
version=$(echo $output | awk -F ': ' '{print $2}')
echo "Crowdin branch: $version"
echo "crowdin_branch=$version" >> $GITHUB_OUTPUT
version=$(./gradlew crowdinBranch -q)
if [[ $version =~ '^1\.[0-9]+$' ]] then
echo "Crowdin branch: $version"
echo "crowdin_branch=$version" >> $GITHUB_OUTPUT
else
echo "Invalid version: $version"
exit 1
fi
- name: Upload translation keys
uses: crowdin/github-action@v1
with:
Expand Down

0 comments on commit b3b6f57

Please sign in to comment.