Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041name: Nightly Update Source Languageson: schedule: - cron: "0 2 * * *" # run at 2 AM UTC workflow_dispatch:
jobs: extract-languages: name: Nightly Update Source Languages runs-on: ubuntu-latest
permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write
steps: - name: Check out Git repository uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: ssh-key: ${{secrets.GH_ACTION_DEPLOY_KEY}} - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 - name: Install node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: package.json cache: pnpm - name: pnpm install run: pnpm install --frozen-lockfile # We run extraction purely to catch strings that fail to compile/render, not # to sync translations. Blacksky has no Crowdin subscription, so the previous # "Push source lang to Crowdin" step always failed on an empty api_token. It # has been removed; the extract + auto-commit of messages.po is the useful part. - name: Extract language strings run: pnpm intl:extract - name: Create commit uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0 with: commit_message: Nightly source-language update file_pattern: ./src/locale/locales/en/messages.po