Skip to content

Commit 61a7a3f

Browse files
committed
fix(actions): fix crowdin action, use bot to create pr
1 parent c0817ac commit 61a7a3f

File tree

3 files changed

+44
-42
lines changed

3 files changed

+44
-42
lines changed

.github/workflows/docs-localization-download.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
base_path: "."
5858
commit_message: "docs: Update localizations from Crowdin"
5959
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
6161
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
6262
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
6363
- name: "Convert Outputs"
@@ -88,46 +88,46 @@ jobs:
8888
PR_ID=$(echo -n "${{ needs.download.outputs.pr_id }}" | base64 --decode)
8989
echo "pr_ref=$PR_REF" >> $GITHUB_OUTPUT
9090
echo "pr_id=$PR_ID" >> $GITHUB_OUTPUT
91-
- name: Invoke checks workflow
92-
uses: benc-uk/[email protected]
93-
with:
94-
workflow: check.yml
95-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
96-
- name: Invoke codeql workflow
97-
uses: benc-uk/[email protected]
98-
with:
99-
workflow: codeql-analysis.yml
100-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
101-
- name: Invoke lint workflow
102-
uses: benc-uk/[email protected]
103-
with:
104-
workflow: lint.yml
105-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
106-
- name: Invoke pr workflow
107-
uses: benc-uk/[email protected]
108-
with:
109-
workflow: pr.yml
110-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
111-
- name: Invoke test workflow
112-
uses: benc-uk/[email protected]
113-
with:
114-
workflow: test.yml
115-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
116-
- name: Invoke todo workflow
117-
uses: benc-uk/[email protected]
118-
with:
119-
workflow: todo.yml
120-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
121-
- name: Invoke version updates workflow
122-
uses: benc-uk/[email protected]
123-
with:
124-
workflow: version-updates.yml
125-
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
126-
# - run: gh pr review --approve -b "auto-approval for localization sync :3" "$PR_ID"
127-
# env:
128-
# PR_ID: ${{ steps.convert_outputs.outputs.pr_id }}
129-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
#- name: Invoke checks workflow
92+
#uses: benc-uk/[email protected]
93+
#with:
94+
#workflow: check.yml
95+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
96+
#- name: Invoke codeql workflow
97+
#uses: benc-uk/[email protected]
98+
#with:
99+
#workflow: codeql-analysis.yml
100+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
101+
#- name: Invoke lint workflow
102+
#uses: benc-uk/[email protected]
103+
#with:
104+
#workflow: lint.yml
105+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
106+
#- name: Invoke pr workflow
107+
#uses: benc-uk/[email protected]
108+
#with:
109+
#workflow: pr.yml
110+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
111+
#- name: Invoke test workflow
112+
#uses: benc-uk/[email protected]
113+
#with:
114+
#workflow: test.yml
115+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
116+
#- name: Invoke todo workflow
117+
#uses: benc-uk/[email protected]
118+
#with:
119+
#workflow: todo.yml
120+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
121+
#- name: Invoke version updates workflow
122+
#uses: benc-uk/[email protected]
123+
#with:
124+
#workflow: version-updates.yml
125+
#ref: ${{ steps.convert_outputs.outputs.pr_ref }}
130126
- run: gh pr merge --auto --squash $PR_ID
127+
env:
128+
PR_ID: ${{ steps.convert_outputs.outputs.pr_id }}
129+
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
130+
- run: gh pr review --approve -b "auto-approval for localization sync :3" "$PR_ID"
131131
env:
132132
PR_ID: ${{ steps.convert_outputs.outputs.pr_id }}
133133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs-localization-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ jobs:
4747
create_pull_request: false
4848
config: "crowdin.yml"
4949
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
5151
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
5252
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}

.github/workflows/version-updates.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if:
1212
${{ github.actor == 'dependabot[bot]' || github.actor == 'crowdin-bot' ||
13-
github.actor == 'Crowdin Bot' }}
13+
github.actor == 'Crowdin Bot' || github.actor_id == 106019021 ||
14+
github.actor_id == 58779643 }}
15+
continue-on-error: true
1416
steps:
1517
- run: gh pr review --approve "$PR_URL"
1618
env:

0 commit comments

Comments
 (0)