mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-27 16:54:30 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54039 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
2
.github/workflows/php-compatibility.yml
vendored
2
.github/workflows/php-compatibility.yml
vendored
@@ -123,7 +123,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.php-compatibility.result == 'cancelled' || needs.php-compatibility.result == 'failure'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user