Make WordPress Core

Changeset 49244


Ignore:
Timestamp:
10/20/2020 05:44:27 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Cancel previous active workflow runs for pull requests.

Because workflow results are reported for each commit, it’s important to let all runs against main and version branches to complete so that the checks are reported accurately.

When considering and reviewing pull requests, the only workflow run that matters is the most recent.

Props ocean90, helen.
See #50401.

Location:
trunk/.github/workflows
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/end-to-end-tests.yml

    r49168 r49244  
    1717  #
    1818  # Performs the following steps:
     19  # - Cancels all previous workflow runs for pull requests that have not completed.
    1920  # - Set environment variables.
    2021  # - Checks out the repository.
     
    3536    runs-on: ubuntu-latest
    3637    steps:
     38      - name: Cancel previous runs of this workflow (pull requests only)
     39        if: ${{ github.event_name == 'pull_request' }}
     40        uses: styfle/cancel-workflow-action@0.5.0
     41        with:
     42          access_token: ${{ github.token }}
     43
    3744      - name: Configure environment variables
    3845        run: |
  • trunk/.github/workflows/javascript-tests.yml

    r49228 r49244  
    1212  #
    1313  # Performs the following steps:
     14  # - Cancels all previous workflow runs for pull requests that have not completed.
    1415  # - Checks out the repository.
    1516  # - Logs debug information about the runner container.
     
    2425    runs-on: ubuntu-latest
    2526    steps:
     27      - name: Cancel previous runs of this workflow (pull requests only)
     28        if: ${{ github.event_name == 'pull_request' }}
     29        uses: styfle/cancel-workflow-action@0.5.0
     30        with:
     31          access_token: ${{ github.token }}
     32
    2633      - name: Checkout repository
    2734        uses: actions/checkout@v2
  • trunk/.github/workflows/phpunit-tests.yml

    r49204 r49244  
    2323  #
    2424  # Performs the following steps:
     25  # - Cancels all previous workflow runs for pull requests that have not completed.
    2526  # - Checks out the repository.
    2627  # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).
     
    3738
    3839    steps:
     40      - name: Cancel previous runs of this workflow (pull requests only)
     41        if: ${{ github.event_name == 'pull_request' }}
     42        uses: styfle/cancel-workflow-action@0.5.0
     43        with:
     44          access_token: ${{ github.token }}
     45
    3946      - name: Checkout repository
    4047        uses: actions/checkout@v2
  • trunk/.github/workflows/verify-npm-on-windows.yml

    r49227 r49244  
    1515  #
    1616  # Performs the following steps:
     17  # - Cancels all previous workflow runs for pull requests that have not completed.
    1718  # - Checks out the repository.
    1819  # - Logs debug information about the runner container.
     
    2526    runs-on: windows-latest
    2627    steps:
     28      - name: Cancel previous runs of this workflow (pull requests only)
     29        if: ${{ github.event_name == 'pull_request' }}
     30        uses: styfle/cancel-workflow-action@0.5.0
     31        with:
     32          access_token: ${{ github.token }}
     33
    2734      - name: Checkout repository
    2835        uses: actions/checkout@v2
Note: See TracChangeset for help on using the changeset viewer.