Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enchancement: update extract translation to only push on one branch #795

Merged
merged 11 commits into from
Jul 16, 2024
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 }}
Loading