Updated translation files #92
Workflow file for this run
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: i18n-weekly-pull | |
env: | |
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml | |
GO_VERSION: "1.19" | |
on: | |
schedule: | |
# run every monday at 2AM | |
- cron: '0 2 * * 1' | |
push: | |
jobs: | |
pull-from-transifex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js 16.14 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.14' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
version: 3.x | |
- name: Install dependencies | |
run: yarn | |
- name: Run i18n:pull script | |
run: yarn run i18n:pull | |
env: | |
TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }} | |
TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }} | |
TRANSIFEX_RESOURCE: ${{ secrets.TRANSIFEX_RESOURCE }} | |
TRANSIFEX_API_KEY: ${{ secrets.TRANSIFEX_API_KEY }} | |
- name: diff | |
run: git diff --color | |
# - name: Create Pull Request | |
# uses: peter-evans/create-pull-request@v5 | |
# with: | |
# commit-message: Updated translation files | |
# title: Update translation files | |
# branch: i18n/translations-update | |
# author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |