Skip to content

Commit c9bc71c

Browse files
committedFeb 21, 2022
Improve concurrency of GitHub Actions (#1128)
* improve concurrency of GitHub Actions This will allow you to cancel older running actions for the current PR / branch. This saves you some resources, but more importantly hopefully frees up some spots in the queue a bit faster. Saw this on the Node.js repo: nodejs/node#42017 * empty commit to trigger cancellation of previous commit
1 parent 6cd7208 commit c9bc71c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

Diff for: ‎.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: CI
22

33
on: [push]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
env:
610
NODE_VERSION: 12.x
711

Diff for: ‎.github/workflows/release-insiders.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
Please sign in to comment.