Skip to content

Commit 91b633b

Browse files
committed
Disable generate_translators workflow for forks
1 parent 7a6eeb7 commit 91b633b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/run-generate-translators.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,26 @@ on:
88

99
jobs:
1010
generate_translators:
11-
# if: github.event.repository.fork == false
11+
if: github.event.repository.fork == false
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
ref: master
19+
1920
- name: Setup Node.js
2021
uses: actions/setup-node@v4
2122
with:
2223
node-version: latest
2324
cache: 'npm'
2425
cache-dependency-path: ./utils/localization/generate-translators/package-lock.json
26+
2527
- name: Install dependencies
2628
working-directory: ./utils/localization/generate-translators
2729
run: npm clean-install
30+
2831
- name: Generate translators
2932
working-directory: ./utils/localization/generate-translators
3033
env:
@@ -33,6 +36,7 @@ jobs:
3336
CROWDIN_PROJECT_ID: "13" # Multi Theft Auto
3437
CROWDIN_IGNORE_USER_ID: "2" # multitheftautoqa
3538
run: npm run ci
39+
3640
- name: Commit changes
3741
env:
3842
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -43,6 +47,6 @@ jobs:
4347
git add ./utils/localization/generate-translators/crowdin-translators.json
4448
4549
if ! git diff-index --quiet HEAD; then
46-
git commit -m "Update crowdin-translators.json"
50+
git commit -m "Update crowdin-translators.json" -m "[ci skip]"
4751
git push
4852
fi

0 commit comments

Comments
 (0)