Skip to content

Commit

Permalink
Merge pull request #795 from PrestaShop/enchancement/extractor-transl…
Browse files Browse the repository at this point in the history
…ation

enchancement: update extract translation to only push on one branch
  • Loading branch information
ga-devfront authored Jul 16, 2024
2 parents e708fbe + 3c3cf00 commit 1d3b1d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/extract-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
env:
BRANCH: ${{ github.ref_name }}
TRANSLATION_BRANCH: 'translation-extraction'
REPOSITORY_NAME: ${{ github.event.repository.name }}
OWNER_NAME: ${{ github.repository_owner }}
steps:
Expand Down Expand Up @@ -40,6 +41,7 @@ jobs:
echo "::error::The directory catalog/autoupgrade/translations/en-US is not empty, some translations are left behind. This can happen when translations have a domain set when calling the method trans."
fi
rmdir catalog/autoupgrade/translations/en-US
/bin/bash -eux ./scripts/pushAndCreatePullRequest.sh
php bin/console prestashop:translation:push-on-git "https://oauth2:${{ secrets.GITHUB_TOKEN }}@github.com/$OWNER_NAME/$REPOSITORY_NAME.git" "$REPOSITORY_NAME" "./catalog" $BRANCH -v --push-on-branch $TRANSLATION_BRANCH
env:
APP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1d3b1d4

Please sign in to comment.