Build/Test Tools: Change the cancel-workflow-action version to a SHA value.

Additionally, the `access_token` input now defaults to `github.token`, so specifying it is unnecessary.

Follow up to [50474].

Props johnbillion.
See #52625.

git-svn-id: https://develop.svn.wordpress.org/trunk@50476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2021-03-02 17:47:33 +00:00
parent ae983c3f99
commit 780e0ffd91
4 changed files with 4 additions and 12 deletions

View File

@ -48,9 +48,7 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d
- name: Configure environment variables
run: |

View File

@ -39,9 +39,7 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d
- name: Checkout repository
uses: actions/checkout@v2

View File

@ -41,9 +41,7 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d
# Runs the PHPUnit tests for WordPress.
#

View File

@ -36,9 +36,7 @@ jobs:
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d
- name: Checkout repository
uses: actions/checkout@v2