Make WordPress Core

Changeset 54039


Ignore:
Timestamp:
08/31/2022 02:29:22 PM (21 months 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.

Location:
trunk/.github/workflows
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r53947 r54039  
    183183      github.repository == 'WordPress/wordpress-develop' &&
    184184      github.event_name != 'pull_request' &&
    185       github.run_number < 2 &&
     185      github.run_attempt < 2 &&
    186186      (
    187187        needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' ||
  • 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'
  • trunk/.github/workflows/javascript-tests.yml

    r53947 r54039  
    108108      github.repository == 'WordPress/wordpress-develop' &&
    109109      github.event_name != 'pull_request' &&
    110       github.run_number < 2 &&
     110      github.run_attempt < 2 &&
    111111      (
    112112        needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure'
  • trunk/.github/workflows/php-compatibility.yml

    r53947 r54039  
    124124      github.repository == 'WordPress/wordpress-develop' &&
    125125      github.event_name != 'pull_request' &&
    126       github.run_number < 2 &&
     126      github.run_attempt < 2 &&
    127127      (
    128128        needs.php-compatibility.result == 'cancelled' || needs.php-compatibility.result == 'failure'
  • 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'
  • trunk/.github/workflows/test-coverage.yml

    r53947 r54039  
    203203      github.repository == 'WordPress/wordpress-develop' &&
    204204      github.event_name != 'pull_request' &&
    205       github.run_number < 2 &&
     205      github.run_attempt < 2 &&
    206206      (
    207207        needs.test-coverage-report.result == 'cancelled' || needs.test-coverage-report.result == 'failure'
  • 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.