mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +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:
parent
843c27e6f9
commit
69b9ecc54e
2
.github/workflows/coding-standards.yml
vendored
2
.github/workflows/coding-standards.yml
vendored
@ -182,7 +182,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' ||
|
||||
needs.jshint.result == 'cancelled' || needs.jshint.result == 'failure'
|
||||
|
||||
2
.github/workflows/end-to-end-tests.yml
vendored
2
.github/workflows/end-to-end-tests.yml
vendored
@ -139,7 +139,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure'
|
||||
)
|
||||
|
||||
2
.github/workflows/javascript-tests.yml
vendored
2
.github/workflows/javascript-tests.yml
vendored
@ -107,7 +107,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure'
|
||||
)
|
||||
|
||||
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'
|
||||
)
|
||||
|
||||
2
.github/workflows/phpunit-tests.yml
vendored
2
.github/workflows/phpunit-tests.yml
vendored
@ -255,7 +255,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure'
|
||||
)
|
||||
|
||||
2
.github/workflows/test-coverage.yml
vendored
2
.github/workflows/test-coverage.yml
vendored
@ -202,7 +202,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.test-coverage-report.result == 'cancelled' || needs.test-coverage-report.result == 'failure'
|
||||
)
|
||||
|
||||
2
.github/workflows/test-npm.yml
vendored
2
.github/workflows/test-npm.yml
vendored
@ -180,7 +180,7 @@ jobs:
|
||||
always() &&
|
||||
github.repository == 'WordPress/wordpress-develop' &&
|
||||
github.event_name != 'pull_request' &&
|
||||
github.run_number < 2 &&
|
||||
github.run_attempt < 2 &&
|
||||
(
|
||||
needs.test-npm.result == 'cancelled' || needs.test-npm.result == 'failure' ||
|
||||
needs.test-npm-macos.result == 'cancelled' || needs.test-npm-macos.result == 'failure'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user