Make WordPress Core


Ignore:
Timestamp:
08/31/2022 02:29:22 PM (2 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/test-npm.yml

    r53947 r54039  
    181181      github.repository == 'WordPress/wordpress-develop' &&
    182182      github.event_name != 'pull_request' &&
    183       github.run_number < 2 &&
     183      github.run_attempt < 2 &&
    184184      (
    185185        needs.test-npm.result == 'cancelled' || needs.test-npm.result == 'failure' ||
Note: See TracChangeset for help on using the changeset viewer.