File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,19 +5,28 @@ permissions:
55
66on :
77 workflow_dispatch :
8- push :
8+ pull_request :
99 branches :
10- - l10n_master
10+ - master
1111 paths :
1212 - ' locale/**/README.md'
1313
1414concurrency :
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
1818jobs :
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
You can’t perform that action at this time.
0 commit comments