File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,18 @@ permissions:
24
24
security-events : none
25
25
statuses : none
26
26
27
+ # Cancel in-progress runs for pull requests when developers push
28
+ # additional changes, and serialize builds in branches.
29
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-to-cancel-any-in-progress-job-or-run
30
+ concurrency :
31
+ group : ${{ github.workflow }}-${{ github.ref }}
32
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
33
+
27
34
jobs :
28
35
lint :
29
36
name : Lint
30
37
runs-on : ubuntu-20.04
31
38
steps :
32
- - name : Cancel Previous Runs
33
- if : github.ref != 'refs/heads/master'
34
- uses : styfle/cancel-workflow-action@0.9.1
35
-
36
39
- name : Checkout
37
40
uses : actions/checkout@v2
38
41
with :
Original file line number Diff line number Diff line change @@ -18,14 +18,18 @@ permissions:
18
18
security-events : none
19
19
statuses : none
20
20
21
+ # Cancel in-progress runs for pull requests when developers push
22
+ # additional changes, and serialize builds in branches.
23
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-to-cancel-any-in-progress-job-or-run
24
+ concurrency :
25
+ group : ${{ github.workflow }}-${{ github.ref }}
26
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
27
+
21
28
jobs :
22
29
preview :
23
30
name : Preview
24
31
runs-on : ubuntu-20.04
25
32
steps :
26
- - name : Cancel Previous Runs
27
- uses : styfle/cancel-workflow-action@0.9.1
28
-
29
33
- name : Checkout m
30
34
uses : actions/checkout@v2
31
35
with :
Original file line number Diff line number Diff line change @@ -19,14 +19,18 @@ permissions:
19
19
security-events : none
20
20
statuses : none
21
21
22
+ # Cancel in-progress runs for pull requests when developers push
23
+ # additional changes, and serialize builds in branches.
24
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-to-cancel-any-in-progress-job-or-run
25
+ concurrency :
26
+ group : ${{ github.workflow }}-${{ github.ref }}
27
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
28
+
22
29
jobs :
23
30
production :
24
31
name : Production
25
32
runs-on : ubuntu-20.04
26
33
steps :
27
- - name : Cancel Previous Runs
28
- uses : styfle/cancel-workflow-action@0.9.1
29
-
30
34
- name : Checkout m
31
35
uses : actions/checkout@v2
32
36
with :
You can’t perform that action at this time.
0 commit comments