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/phpunit-tests.yml

    r53947 r54039  
    256256      github.repository == 'WordPress/wordpress-develop' &&
    257257      github.event_name != 'pull_request' &&
    258       github.run_number < 2 &&
     258      github.run_attempt < 2 &&
    259259      (
    260260        needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure'
Note: See TracChangeset for help on using the changeset viewer.