Make WordPress Core


Ignore:
Timestamp:
08/31/2022 02:29:22 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Correct the context variable being used when auto-retrying failed and cancelled workflows.

The correct variable here is github.run_attempt, which represents the unique number for each attempt of a particular workflow run in a repository.

The github.run_number currently being used represents the unique number for each run of a particular workflow in a repository.

Follow up to [53947].

Fixes #56407.

File:
1 edited

Legend:

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

    r53947 r54039  
    140140      github.repository == 'WordPress/wordpress-develop' &&
    141141      github.event_name != 'pull_request' &&
    142       github.run_number < 2 &&
     142      github.run_attempt < 2 &&
    143143      (
    144144        needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure'
Note: See TracChangeset for help on using the changeset viewer.