From 86f75f9bff8e7b0d7890466c3e8ab58351a542f3 Mon Sep 17 00:00:00 2001 From: prince-deriv <82309725+prince-deriv@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:45:38 +0400 Subject: [PATCH] Update translation-sync.yml --- .github/workflows/translation-sync.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/translation-sync.yml b/.github/workflows/translation-sync.yml index 19661f22b69..cbc98748af2 100644 --- a/.github/workflows/translation-sync.yml +++ b/.github/workflows/translation-sync.yml @@ -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