Make WordPress Core


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.