diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index ed2f2d76e..afb084814 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -10,17 +10,18 @@ jobs: name: Validate Gradle Wrapper runs-on: ubuntu-latest steps: + - name: Cancel previous runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + all_but_latest: true + - name: Clone repo uses: actions/checkout@v2 - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v1 - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ github.token }} - build_multisrc: name: Build multisrc modules needs: check_wrapper diff --git a/.github/workflows/cancel_pull_request.yml b/.github/workflows/cancel_pull_request.yml index 4d6b65f1e..0458f4210 100644 --- a/.github/workflows/cancel_pull_request.yml +++ b/.github/workflows/cancel_pull_request.yml @@ -10,6 +10,7 @@ jobs: cancel: runs-on: ubuntu-latest steps: - - uses: styfle/cancel-workflow-action@0.8.0 + - uses: styfle/cancel-workflow-action@0.9.1 with: workflow_id: ${{ github.event.workflow.id }} + all_but_latest: true