From b5187661ee46b8fe15953806e06e0e2e442826e4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Feb 2023 01:13:40 +0000 Subject: [PATCH] ci: cancel running node.js tests when the branch is updated Do not waste CI time running the tests for previous commit. --- .github/workflows/node-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index 7836f9b33..165880c68 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -1,4 +1,11 @@ name: "node.js tests" + +# Cancel previously started workflow runs +# when the branch is updated. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: pull_request: push: