Skip to content

Commit 82c6e76

Browse files
committed
fix(actions): manually run pr checks
1 parent c6c832d commit 82c6e76

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

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

+18-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
localizse:
7+
download:
88
permissions: write-all
9-
name: "Localisize Docs"
9+
name: "Download localizations from Crowdin"
1010
runs-on: ubuntu-latest
11+
outputs:
12+
pr_ref: pull/${{ steps.crowdin.outputs.pull_request_number }}/head
1113
steps:
1214
- uses: actions/checkout@v4
1315
- name: "Install Python"
@@ -32,6 +34,7 @@ jobs:
3234
hi -l ko -l pt_BR -l es -l zh_CN -l ru -l en
3335
working-directory: ./docs
3436
- name: "Crowdin"
37+
id: crowdin
3538
uses: crowdin/github-action@v2
3639
with:
3740
upload_sources: false
@@ -53,31 +56,44 @@ jobs:
5356
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5457
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
5558
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
59+
pr:
60+
permissions: write-all
61+
name: "Trigger PR workflows manually"
62+
needs: [download]
63+
runs-on: ubuntu-latest
64+
steps:
5665
- name: Invoke checks workflow
5766
uses: benc-uk/workflow-dispatch@v1.2.4
5867
with:
5968
workflow: check.yml
69+
ref: ${{ needs.download.outputs.pr_ref }}
6070
- name: Invoke codeql workflow
6171
uses: benc-uk/workflow-dispatch@v1.2.4
6272
with:
6373
workflow: codeql-analysis.yml
74+
ref: ${{ needs.download.outputs.pr_ref }}
6475
- name: Invoke lint workflow
6576
uses: benc-uk/workflow-dispatch@v1.2.4
6677
with:
6778
workflow: lint.yml
79+
ref: ${{ needs.download.outputs.pr_ref }}
6880
- name: Invoke pr workflow
6981
uses: benc-uk/workflow-dispatch@v1.2.4
7082
with:
7183
workflow: pr.yml
84+
ref: ${{ needs.download.outputs.pr_ref }}
7285
- name: Invoke test workflow
7386
uses: benc-uk/workflow-dispatch@v1.2.4
7487
with:
7588
workflow: test.yml
89+
ref: ${{ needs.download.outputs.pr_ref }}
7690
- name: Invoke todo workflow
7791
uses: benc-uk/workflow-dispatch@v1.2.4
7892
with:
7993
workflow: todo.yml
94+
ref: ${{ needs.download.outputs.pr_ref }}
8095
- name: Invoke version updates workflow
8196
uses: benc-uk/workflow-dispatch@v1.2.4
8297
with:
8398
workflow: version-updates.yml
99+
ref: ${{ needs.download.outputs.pr_ref }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
localizse:
10+
upload:
1111
permissions: write-all
12-
name: "Localisize Docs"
12+
name: "Upload localization base to Crowdin"
1313
runs-on: ubuntu-latest
1414
if:
1515
contains(github.event.head_commit.message, '!crowdin upload') || github.event_name

0 commit comments

Comments
 (0)