From daa6d2ca015a93aeb0dba3fd34a9e8502d796f8f Mon Sep 17 00:00:00 2001 From: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Date: Tue, 7 Nov 2023 04:16:26 +0545 Subject: [PATCH] Chore: Cancel previous runs (#2227) Cancel previous runs --- .github/workflows/ci-chromatic.yaml | 4 ++++ .github/workflows/ci-docs.yaml | 4 ++++ .github/workflows/ci-front.yaml | 20 ++++++++++++++++++++ .github/workflows/ci-server.yaml | 4 ++++ 4 files changed, 32 insertions(+) diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yaml index aaa38e687b..7f09c59afb 100644 --- a/.github/workflows/ci-chromatic.yaml +++ b/.github/workflows/ci-chromatic.yaml @@ -13,6 +13,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index f066479ed4..b30c1ed7f8 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -8,6 +8,10 @@ jobs: docs-build: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 885e10cb22..c8b2e8de3f 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -10,6 +10,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 @@ -35,6 +39,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 @@ -73,6 +81,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 @@ -109,6 +121,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 @@ -136,6 +152,10 @@ jobs: env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 5056b07b82..08e54add11 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -24,6 +24,10 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v3