File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,21 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
timeout-minutes : 10
16
16
steps :
17
+ - name : Set running flag
18
+ run : echo "::set-env name=RUNNING::"
19
+ - name : Set running flag
20
+ run : echo "::set-env name=RUNNING::1"
21
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id)
17
22
- uses : technote-space/load-config-action@v1
23
+ if : env.RUNNING
18
24
with :
19
25
CONFIG_FILENAME : workflow-settings.json
20
26
- uses : technote-space/auto-cancel-redundant-job@v1
27
+ if : env.RUNNING
21
28
with :
22
29
EXCLUDE_MERGED : ' true'
23
30
- name : Update dependencies
31
+ if : env.RUNNING
24
32
id : update_deps
25
33
uses : technote-space/create-pr-action@v2
26
34
with :
37
45
TARGET_BRANCH_PREFIX : release/
38
46
AUTO_MERGE_THRESHOLD_DAYS : 14
39
47
40
- - name : Set running flag
41
- run : echo "::set-env name=RUNNING::"
42
48
- name : Set running flag
43
49
run : echo "::set-env name=RUNNING::1"
44
- if : steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')
50
+ if : env.RUNNING && steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && startsWith(github.head_ref, 'release/')
45
51
- uses : actions/checkout@v2
46
52
if : env.RUNNING
47
53
- name : Set running flag
You can’t perform that action at this time.
0 commit comments