chore: cancel previous GHA from the same PR
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a5fb2e2..20fb46a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml
@@ -8,6 +8,11 @@ # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + # Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109 + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: uses: bazel-contrib/.github/.github/workflows/bazel.yaml@v2
diff --git a/.github/workflows/update-nodejs-versions.yml b/.github/workflows/update-nodejs-versions.yml index 950d48c..b974692 100644 --- a/.github/workflows/update-nodejs-versions.yml +++ b/.github/workflows/update-nodejs-versions.yml
@@ -19,7 +19,7 @@ steps: - name: Git Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0