Skip to content

Commit 6957bfd

Browse files
authored
Cancel previous workflows (#1119)
1 parent 9f9f94f commit 6957bfd

File tree

8 files changed

+64
-0
lines changed

8 files changed

+64
-0
lines changed

.github/workflows/analyze.yml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ on:
1515
default: 100
1616

1717
jobs:
18+
cancel-previous-workflow:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Cancel Previous Runs
22+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
23+
with:
24+
access_token: ${{ github.token }}
25+
1826
analyze:
1927
runs-on: ubuntu-latest
2028
timeout-minutes: 20

.github/workflows/dart.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
- 'dio/**'
1111

1212
jobs:
13+
cancel-previous-workflow:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
1321
build:
1422
name: Build ${{matrix.sdk}} on ${{matrix.os}}
1523
runs-on: ${{ matrix.os }}

.github/workflows/dio.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
- 'flutter/**'
1111

1212
jobs:
13+
cancel-previous-workflow:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
1321
build:
1422
name: Build ${{matrix.sdk}} on ${{matrix.os}}
1523
runs-on: ${{ matrix.os }}

.github/workflows/e2e_dart.yml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ env:
1515
SENTRY_DIST: 1
1616

1717
jobs:
18+
cancel-previous-workflow:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Cancel Previous Runs
22+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
23+
with:
24+
access_token: ${{ github.token }}
25+
1826
build:
1927
name: E2E
2028
runs-on: 'ubuntu-latest'

.github/workflows/flutter.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
- 'dio/**'
1111

1212
jobs:
13+
cancel-previous-workflow:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
1321
build:
1422
name: ${{ matrix.target }} | ${{ matrix.os }} | ${{ matrix.sdk }}
1523
runs-on: ${{ matrix.os }}

.github/workflows/logging.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
- 'flutter/**'
1111

1212
jobs:
13+
cancel-previous-workflow:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
1321
build:
1422
name: Build ${{matrix.sdk}} on ${{matrix.os}}
1523
runs-on: ${{ matrix.os }}

.github/workflows/metrics.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ on:
1313
tags-ignore: ['**']
1414

1515
jobs:
16+
cancel-previous-workflow:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Cancel Previous Runs
20+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
21+
with:
22+
access_token: ${{ github.token }}
23+
1624
metrics:
1725
name: ${{ matrix.name }}
1826
runs-on: ${{ matrix.host }}

.github/workflows/min_version_test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
pull_request:
88

99
jobs:
10+
cancel-previous-workflow:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # [email protected]
15+
with:
16+
access_token: ${{ github.token }}
17+
1018
build:
1119
name: Build
1220
runs-on: macos-latest

0 commit comments

Comments
 (0)