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

Prince/Update translation-sync.yml #6233

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading