Skip to content

Commit 1b8a77a

Browse files
authored
chore: Cancel old workflows on commit (#148)
chore: Cancel old ci runs on push
1 parent d974877 commit 1b8a77a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/esy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
branches: [main]
55
pull_request:
66

7+
# This will cancel previous runs when a branch or PR is updated
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
10+
cancel-in-progress: true
11+
712
jobs:
813
build:
914
name: Build and test

.github/workflows/js.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
branches-ignore:
55
- main
66

7+
# This will cancel previous runs when a branch or PR is updated
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
10+
cancel-in-progress: true
11+
712
jobs:
813
build:
914
name: "Build with emsdk"

.github/workflows/opam.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
branches: [main]
55
pull_request:
66

7+
# This will cancel previous runs when a branch or PR is updated
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
10+
cancel-in-progress: true
11+
712
jobs:
813
build:
914
name: Build and test

0 commit comments

Comments
 (0)