Skip to content

Commit 8403c00

Browse files
fix: restrict README nav sync to bot PRs (#110)
1 parent bceff98 commit 8403c00

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/sync-readme-navigation-crowdin.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,28 @@ permissions:
55

66
on:
77
workflow_dispatch:
8-
push:
8+
pull_request:
99
branches:
10-
- l10n_master
10+
- master
1111
paths:
1212
- 'locale/**/README.md'
1313

1414
concurrency:
15-
group: crowdin-readme-navigation-sync
16-
cancel-in-progress: false
15+
group: crowdin-readme-navigation-sync-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
1717

1818
jobs:
1919
sync:
20-
if: github.repository_owner == 'LizardByte'
20+
if: >-
21+
github.repository_owner == 'LizardByte' &&
22+
(
23+
github.event_name == 'workflow_dispatch' ||
24+
(
25+
github.event.pull_request.user.login == 'LizardByte-bot' &&
26+
github.event.pull_request.head.repo.full_name == github.repository &&
27+
github.head_ref == 'l10n_master'
28+
)
29+
)
2130
runs-on: ubuntu-latest
2231
steps:
2332
- name: Checkout

0 commit comments

Comments
 (0)