File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- develop
6
+ - master
6
7
- release/**
7
8
pull_request :
8
9
workflow_dispatch :
@@ -136,6 +137,10 @@ jobs:
136
137
# Note: These next three have to be checked as strings ('true'/'false')!
137
138
is_develop : ${{ github.ref == 'refs/heads/develop' }}
138
139
is_release : ${{ startsWith(github.ref, 'refs/heads/release/') }}
140
+ is_gitflow_sync : |
141
+ github.event_name == 'pull_request' &&
142
+ (github.head_ref == 'refs/heads/develop' || github.head_ref == 'refs/heads/master') &&
143
+ contains(steps.pr-labels.outputs.labels, ' Dev: Gitflow ')
139
144
force_skip_cache :
140
145
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
141
146
@@ -144,7 +149,9 @@ jobs:
144
149
needs : job_get_metadata
145
150
runs-on : ubuntu-20.04
146
151
timeout-minutes : 15
147
- if : needs.job_get_metadata.outputs.changed_any_code == 'true' || github.event_name != 'pull_request'
152
+ if : |
153
+ needs.job_get_metadata.outputs.is_gitflow_sync == 'false' &&
154
+ (needs.job_get_metadata.outputs.changed_any_code == 'true' || github.event_name != 'pull_request')
148
155
steps :
149
156
- name : ' Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
150
157
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments