From 4fd46bb62523e793bf7767d25ef84f6aa9001899 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Mon, 15 Aug 2022 07:46:16 +0530 Subject: [PATCH 1/2] ci: add job to cancel previous runs --- .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..b53dda4 --- /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 }} \ No newline at end of file From 710e5dfa7705b01dfece1411d656d66cf130ab22 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Tue, 16 Aug 2022 14:32:56 +0530 Subject: [PATCH 2/2] ci: add job to cancel previous runs --- .github/workflows/cancel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml index b53dda4..66570c7 100644 --- a/.github/workflows/cancel.yml +++ b/.github/workflows/cancel.yml @@ -9,4 +9,4 @@ jobs: - uses: styfle/cancel-workflow-action@0.10.0 with: workflow_id: nodejs.yml - access_token: ${{ github.token }} \ No newline at end of file + access_token: ${{ github.token }}