Commit 91be9ec 1 parent 16cc391 commit 91be9ec Copy full SHA for 91be9ec
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name: Incoming Translation Checks
7
7
on :
8
8
# run when new translations download
9
9
workflow_run :
10
- workflows : [" Crowdin Download" ]
10
+ workflows : [' Crowdin Download' ]
11
11
types :
12
12
- completed
13
13
# run when someone tries to manually change localized content
34
34
comment_on_translation_pr :
35
35
# This comment should always be posted on forks, or from internal PRs not originating from Crowdin (which are direct branches)
36
36
if : |
37
- (github.event.pull_request.head.repo.full_name != 'nodejs/nodejs.org') ||
38
- (github.event.pull_request.head.repo.full_name == 'nodejs/nodejs.org' && github.event.pull_request.head.ref != 'chore/crowdin')
37
+ (github.event_name == 'workflow_run' && github.event.workflow_run.head_commit.message != 'chore: synced translations from crowdin') ||
38
+ (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != 'nodejs/nodejs.org') ||
39
+ (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name == 'nodejs/nodejs.org' && github.event.pull_request.head.ref != 'chore/crowdin')
39
40
40
41
name : Comment on Translation PR
41
42
runs-on : ubuntu-latest
65
66
format_crowdin_pull_request :
66
67
# We should only run the automated Format Command on Crowdin-based Pull Requests
67
68
if : |
68
- github.event.pull_request.head.repo.full_name == 'nodejs/nodejs.org' &&
69
- github.event.pull_request.head.ref == 'chore/crowdin'
69
+ ( github.event_name == 'workflow_run' && github. event.workflow_run.head_commit.message == 'chore: synced translations from crowdin') ||
70
+ ( github.event_name == 'pull_request_target' && github. event.pull_request.head.repo.full_name == 'nodejs/nodejs.org' && github.event.pull_request.head. ref == 'chore/crowdin')
70
71
71
72
name : Format Crowdin Pull Request
72
73
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments