From 82a96ed2fd1e35d29ff95e62c63d84dbe095213b Mon Sep 17 00:00:00 2001 From: nabim777 Date: Wed, 30 Aug 2023 15:17:20 +0545 Subject: [PATCH] add cancel-workflow-action --- .github/workflows/CI.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 742580f..e735148 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,7 +12,13 @@ on: jobs: build: runs-on: ubuntu-latest - steps: + steps: + - name: Cancel previous runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + all_but_latest: true + access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout code uses: actions/checkout@v2