From b0f0b6a7abc27ea3c3bd60f8772619c81b837f5b Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 21 Feb 2022 23:29:49 +0100 Subject: [PATCH 1/2] 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: https://github.com/nodejs/node/pull/42017 --- .github/workflows/main.yml | 4 ++++ .github/workflows/release-insiders.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c61462c133..2122e992b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,10 @@ name: CI on: [push] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: NODE_VERSION: 12.x diff --git a/.github/workflows/release-insiders.yml b/.github/workflows/release-insiders.yml index e6891facb4..85ea848db9 100644 --- a/.github/workflows/release-insiders.yml +++ b/.github/workflows/release-insiders.yml @@ -4,6 +4,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest From b30b8a06c52f29f3d452e6bd73bbd2b223ab1530 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 21 Feb 2022 23:33:07 +0100 Subject: [PATCH 2/2] empty commit to trigger cancellation of previous commit