Skip to content

Commit

Permalink
read crowdin branch out of the full log
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Jan 28, 2024
1 parent f802967 commit 01236bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Determine Crowdin branch
id: get_crowdin_branch
run: |
version=$(./gradlew crowdinBranch -q)
output=$(./gradlew crowdinBranch)
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
Expand Down
2 changes: 1 addition & 1 deletion gradle/crowdin.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tasks.register('crowdinBranch') {
doLast {
print("${project.main_version}.${project.major_version}")
print("Crowdin branch: ${project.main_version}.${project.major_version}")
}
}

0 comments on commit 01236bb

Please sign in to comment.