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 5c119a8 commit 86f75f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/translation-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ jobs:
sudo apt install gh
gh auth login --with-token <<< ${{ github.token }}
gh pr close "$branch_name" || true
if [ "$(gh pr view $branch_name --json state -q '.state')" == "\"open\"" ]; then
echo "Pull request for branch $branch_name is open and not merged."
else
echo "Pull request for branch $branch_name is either closed or merged."
fi
gh pr close "$branch_name" || true
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
Expand Down

0 comments on commit 86f75f9

Please sign in to comment.