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