ci: cancel running node.js tests when the branch is updated

Do not waste CI time running the tests for previous commit.
This commit is contained in:
link2xt
2023-02-24 01:13:40 +00:00
parent 059c673d00
commit b5187661ee

View File

@@ -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: