Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Update translation-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv authored Dec 14, 2023
1 parent f14c7e0 commit 56505c1
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/translation-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,25 @@ jobs:
sudo apt install gh
gh auth login --with-token <<< ${{ github.token }}
pr_close=$(gh pr close "$branch_name" || true)
gh pr close "$branch_name" || true
# Check the exit status
EXIT_STATUS=$?
# Set the output variable based on the exit status
if [ $EXIT_STATUS -eq 0 ]; then
al="false"
echo "ALERT=false" >> $GITHUB_ENV
else
al="true"
echo "ALERT=true" >> $GITHUB_ENV
fi

pr_output=$(gh pr create --base "master" --title "[translations] New strings from crowdin 📚" --head "binary-com:$branch_name" -F ".github/translation_sync_template.md")
echo "PR_URL=$pr_output" >> $GITHUB_ENV
echo "PR_CLOSE=$pr_close" >> $GITHUB_ENV
echo $pr_close
echo $pr_output

echo "Should alert: $al"

fi

# Upload new strings to Crowdin
Expand Down

0 comments on commit 56505c1

Please sign in to comment.