WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2020 05:44:27 PM (14 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/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
Note: See TracChangeset for help on using the changeset viewer.