Skip to content

Commit f3173c7

Browse files
authored
ci: Cancel jobs if no longer needed (#228)
1 parent e2ba8ef commit f3173c7

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.github/workflows/bump-version.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
- master
77
paths:
88
- repos/**
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
914

1015
jobs:
1116
bump-version:
@@ -14,7 +19,7 @@ jobs:
1419
- uses: jcs090218/setup-emacs@master
1520
with:
1621
version: '27.2'
17-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
1823

1924
- name: Bump version
2025
uses: actions/github-script@v5

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
paths-ignore:
1616
- README.org
1717
- CHANGELOG.md
18+
workflow_dispatch:
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
1823

1924
jobs:
2025
ci:

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/177
99
- '!melpa-stable/**'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
strategy:
@@ -37,7 +41,7 @@ jobs:
3741
host: x86_64-pc-windows-msvc
3842
runs-on: ${{ matrix.os }}
3943
steps:
40-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4145
- run: .github/script/setup
4246

4347
- name: Install tree-sitter CLI

.github/workflows/shell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build:
2020
runs-on: ${{ github.event.inputs.platform }}
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
with:
2424
ref: ${{ github.event.inputs.revision }}
2525
- uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)