i18n-nightly-push #1465
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-nightly-push | |
on: | |
schedule: | |
# run every day at 1AM | |
- cron: "0 1 * * *" | |
jobs: | |
push-to-transifex: | |
# This workflow is only of value to the arduino/arduino-cli repository and | |
# would always fail in forks | |
if: github.repository == 'arduino/arduino-cli' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
- name: Install Taskfile | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
version: 3.x | |
- name: Run task i18n:update | |
run: task i18n:update | |
- name: Run task i18n:push | |
run: task i18n:push | |
env: | |
TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }} | |
TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }} | |
TRANSIFEX_RESOURCE: ${{ secrets.TRANSIFEX_RESOURCE }} | |
TRANSIFEX_API_KEY: ${{ secrets.TRANSIFEX_API_KEY }} |