From 63d599a26c386b1534ba78b5042e8d235fb946b9 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:22:18 +0100 Subject: [PATCH] Github actions - cancel previous runs on commit (#1675) --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da3952194..49803f389 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,15 @@ on: defaults: run: shell: bash -jobs: +jobs: + cancel-runs: + name: Cancel Previous Runs + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} build: runs-on: self-hosted env: