forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1name: Nightly Update Source Languages
2on:
3 schedule:
4 - cron: "0 2 * * *" # run at 2 AM UTC
5 workflow_dispatch:
6
7jobs:
8 extract-languages:
9 name: Nightly Update Source Languages
10 runs-on: ubuntu-latest
11
12 permissions:
13 # Give the default GITHUB_TOKEN write permission to commit and push the
14 # added or changed files to the repository.
15 contents: write
16
17 steps:
18 - name: Check out Git repository
19 uses: actions/checkout@v4
20 with:
21 ssh-key: ${{secrets.GH_ACTION_DEPLOY_KEY}}
22 - name: Install node
23 uses: actions/setup-node@v6
24 with:
25 node-version-file: .nvmrc
26 cache: yarn
27 - name: Yarn install
28 uses: Wandalen/wretry.action@master
29 with:
30 command: yarn --frozen-lockfile
31 attempt_limit: 3
32 attempt_delay: 2000
33 - name: Extract language strings
34 run: yarn intl:extract
35 - name: Create commit
36 uses: stefanzweifel/git-auto-commit-action@v5
37 with:
38 commit_message: Nightly source-language update
39 file_pattern: ./src/locale/locales/en/messages.po
40 - name: Push source lang to Crowdin
41 uses: crowdin/github-action@v2
42 with:
43 upload_sources: true
44 upload_sources_args: "-b main"
45 upload_translations: false
46 push_translations: false
47 push_sources: false
48 create_pull_request: false
49 env:
50 CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}