8
8
9
9
jobs :
10
10
crowdin-sync :
11
- name : Crowdin Pull - ${{ github.event_name }}
11
+ name : Crowdin Pull - ${{ matrix.name }} - ${{ github.event_name }}
12
12
runs-on : ubuntu-24.04
13
+ strategy :
14
+ matrix :
15
+ include :
16
+ - name : Password Manager
17
+ project_id : 269690
18
+ config : crowdin-pm.yml
19
+ branch : crowdin-pull-bwpm
20
+ - name : Authenticator
21
+ project_id : 673718
22
+ config : crowdin-bwa.yml
23
+ branch : crowdin-pull-bwa
13
24
steps :
14
25
- name : Checkout repo
15
26
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -38,52 +49,18 @@ jobs:
38
49
env :
39
50
GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
40
51
CROWDIN_API_TOKEN : ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
41
- _CROWDIN_PROJECT_ID : " 269690 "
52
+ _CROWDIN_PROJECT_ID : ${{ matrix.project_id }}
42
53
with :
43
- config : crowdin-pm.yml
54
+ config : ${{ matrix.config }}
44
55
upload_sources : false
45
56
upload_translations : false
46
57
download_translations : true
47
58
github_user_name : " bitwarden-devops-bot"
48
59
github_user_email : " 106330231+bitwarden-devops-bot@users.noreply.github.com"
49
60
commit_message : " Pull translations from Crowdin"
50
- localization_branch_name : crowdin-pull-bwpm
61
+ localization_branch_name : ${{ matrix.branch }}
51
62
create_pull_request : true
52
- pull_request_title : " :shipit: Crowdin Pull - Password Manager "
53
- pull_request_body : " :inbox_tray: New translations for Password Manager received!"
63
+ pull_request_title : " :shipit: Crowdin Pull - ${{ matrix.name }} "
64
+ pull_request_body : " :inbox_tray: New translations for ${{ matrix.name }} received!"
54
65
gpg_private_key : ${{ steps.retrieve-secrets.outputs.github-gpg-private-key }}
55
- gpg_passphrase : ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }}
56
-
57
- - name : Remove GPG Lock files
58
- run : |
59
- #ref: https://superuser.com/questions/1811518/gpg-stops-doing-anything-on-mac
60
- #ref: https://forum.gnupg.org/t/gpg-stuck-after-any-command/4197/6
61
-
62
- ls -l ~/.gnupg/*.lock
63
- echo "-------"
64
- ls -l ~/.gnupg/**/*.lock
65
- echo "-------"
66
- rm -rf ~/.gnupg/*.lock
67
- rm -rf ~/.gnupg/public-keys.d/*.lock
68
-
69
- - name : Download translations for Authenticator
70
- uses : crowdin/github-action@b8012bd5491b8aa8578b73ab5b5f5e7c94aaa6e2 # v2.7.0
71
- env :
72
- GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
73
- CROWDIN_API_TOKEN : ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
74
- _CROWDIN_PROJECT_ID : " 673718"
75
- with :
76
- config : crowdin-bwa.yml
77
- upload_sources : false
78
- upload_translations : false
79
- download_translations : true
80
- github_user_name : " bitwarden-devops-bot"
81
- github_user_email : " 106330231+bitwarden-devops-bot@users.noreply.github.com"
82
- commit_message : " Pull translations from Crowdin"
83
- localization_branch_name : crowdin-pull-bwa
84
- create_pull_request : true
85
- pull_request_title : " :shipit: Crowdin Pull - Authenticator"
86
- pull_request_body : " :inbox_tray: New translations for Authenticator received!"
87
- gpg_passphrase : ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }}
88
- # NOTE - gpg_private_key ommited because they're setup by the previous step.
89
- # This step would fail if they were included again
66
+ gpg_passphrase : ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }}
0 commit comments