mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 08:55:48 +03:00
BRE-438 - Update Crowdin workflow to use app token (#4321)
This commit is contained in:
parent
3742940290
commit
6a0a7d70bc
1 changed files with 9 additions and 2 deletions
11
.github/workflows/crowdin-pull.yml
vendored
11
.github/workflows/crowdin-pull.yml
vendored
|
@ -2,7 +2,7 @@ name: Crowdin Sync
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs: { }
|
||||
inputs: {}
|
||||
schedule:
|
||||
- cron: '0 0 * * 5'
|
||||
|
||||
|
@ -28,10 +28,17 @@ jobs:
|
|||
keyvault: "bitwarden-ci"
|
||||
secrets: "crowdin-api-token, github-gpg-private-key, github-gpg-private-key-passphrase"
|
||||
|
||||
- name: Generate GH App token
|
||||
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.BW_GHAPP_ID }}
|
||||
private-key: ${{ secrets.BW_GHAPP_KEY }}
|
||||
|
||||
- name: Download translations
|
||||
uses: crowdin/github-action@2d540f18b0a416b1fbf2ee5be35841bd380fc1da # v2.3.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
|
||||
with:
|
||||
config: crowdin.yml
|
||||
|
|
Loading…
Reference in a new issue