From 541ad251dfc1a5d43a6ebd677e269547b2984ea3 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Mon, 15 Aug 2022 23:06:26 +0530 Subject: [PATCH] ci: add job to cancel previous runs (#358) --- .github/workflows/cancel.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/cancel.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 0000000..66570c7 --- /dev/null +++ b/.github/workflows/cancel.yml @@ -0,0 +1,12 @@ +name: Cancel +on: [push] +jobs: + cancel: + name: Cancel Previous Runs + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: styfle/cancel-workflow-action@0.10.0 + with: + workflow_id: nodejs.yml + access_token: ${{ github.token }}