Skip to content

Commit 97c0f64

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

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

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

+40-40
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

+1-1
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 }}

0 commit comments

Comments
 (0)