Skip to content

Commit 2a3ec45

Browse files
committed
Add concurrency to workflows
1 parent d27696c commit 2a3ec45

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/workflows/flutter-linux.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
# https://crontab.guru/#40_10_*_*_*
1010
- cron: '40 10 * * *'
1111
workflow_dispatch:
12-
12+
13+
concurrency:
14+
group: ${{ github.workflow.name }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test:
1519
uses: ./.github/workflows/flutter.yml

.github/workflows/flutter-macos-intel.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
# https://crontab.guru/#40_10_*_*_*
1010
- cron: '40 10 * * *'
1111
workflow_dispatch:
12-
12+
13+
concurrency:
14+
group: ${{ github.workflow.name }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test:
1519
uses: ./.github/workflows/flutter.yml

.github/workflows/flutter-macos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
# https://crontab.guru/#40_10_*_*_*
1010
- cron: '40 10 * * *'
1111
workflow_dispatch:
12-
12+
13+
concurrency:
14+
group: ${{ github.workflow.name }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test:
1519
uses: ./.github/workflows/flutter.yml

.github/workflows/flutter-windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
# https://crontab.guru/#40_10_*_*_*
1010
- cron: '40 10 * * *'
1111
workflow_dispatch:
12-
12+
13+
concurrency:
14+
group: ${{ github.workflow.name }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test:
1519
uses: ./.github/workflows/flutter.yml

0 commit comments

Comments
 (0)