diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index be9f8ca9b..c65b2bb32 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -13,9 +13,10 @@ jobs: steps: - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.5.0 + uses: styfle/cancel-workflow-action@0.9.1 with: access_token: ${{ github.token }} + all_but_latest: true - name: Clone repo uses: actions/checkout@v2 diff --git a/.github/workflows/cancel_pull_request.yml b/.github/workflows/cancel_pull_request.yml index 4d6b65f1e..82d572614 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: + all_but_latest: true workflow_id: ${{ github.event.workflow.id }} diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 223783df6..9df6caccc 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -12,8 +12,8 @@ jobs: lock: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v2 + - uses: dessant/lock-threads@v3 with: github-token: ${{ github.token }} - issue-lock-inactive-days: '2' - pr-lock-inactive-days: '2' + issue-inactive-days: '2' + pr-inactive-days: '2'