Localize #1767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Localize | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.strings' | |
- '**.stringsdict' | |
# Also run every day at midnight to pick up new localizations | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 0 * * *' | |
jobs: | |
Localize: | |
runs-on: ubuntu-latest | |
environment: localization | |
permissions: | |
actions: read | |
contents: read | |
deployments: read | |
packages: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- shell: bash | |
name: Localize | |
env: | |
TDBUILD_TEAM_ID: ${{ secrets.TDBUILD_TEAM_ID }} | |
TDBUILD_AAD_APPLICATION_CLIENT_ID: ${{ secrets.TDBUILD_AAD_APPLICATION_CLIENT_ID }} | |
TDBUILD_AAD_APPLICATION_CLIENT_SECRET: ${{ secrets.TDBUILD_AAD_APPLICATION_CLIENT_SECRET }} | |
run: scripts/localize.sh | |
- name: Create Pull Request | |
run: scripts/create_localization_pr.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.MSF_TOKEN }} | |
EMAIL: ${{ secrets.EMAIL }} | |
NAME: ${{ vars.NAME }} |