WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2020 05:44:27 PM (13 months 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/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.