Make WordPress Core

Changeset 55516


Ignore:
Timestamp:
03/10/2023 03:52:41 PM (19 months ago)
Author:
desrosj
Message:

Build/Test Tools: Backport updates to GitHub Actions.

This backports several changesets to GitHub Actions workflows. These changesets:

  • address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
  • adds support for automatically retrying a failed workflow once.
  • removes workflow files that are not applicable to the branch.

Merges [53736], [53737], [53940], [53947], [54039], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54649], [54650], [54651], [54674], [54750], [54852], [55152], [55487] to the 5.9 branch.
See #55652, #56407, #54695, #56820, #56816, #56793, #56820, #57572.

Location:
branches/5.9/.github/workflows
Files:
3 deleted
7 edited

Legend:

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

    r53596 r55516  
    1010      - '[4-9].[0-9]'
    1111    tags:
    12       - '3.[89]*'
    13       - '[4-9].[0-9]*'
     12      - '[0-9]+.[0-9]'
     13      - '[0-9]+.[0-9].[0-9]+'
     14      - '!3.7.[0-9]+'
    1415  pull_request:
    1516    branches:
     
    2122      - '**.js'
    2223      - '**.php'
    23       # These files configure NPM. Changes could affect the outcome.
     24      # These files configure npm. Changes could affect the outcome.
    2425      - 'package*.json'
    2526      # These files configure Composer. Changes could affect the outcome.
     
    6465    steps:
    6566      - name: Checkout repository
    66         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     67        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6768
    6869      - name: Set up PHP
    69         uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
     70        uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
    7071        with:
    7172          php-version: '7.4'
     
    8283      - name: "Get last Monday's date"
    8384        id: get-date
    84         run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
     85        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
    8586
    8687      - name: Cache PHPCS scan cache
    87         uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
     88        uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
    8889        with:
    8990          path: .cache/phpcs.json
     
    9192
    9293      - name: Install Composer dependencies
    93         uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    94         with:
    95           composer-options: "--no-progress --no-ansi --no-interaction"
     94        uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
     95        with:
     96          composer-options: "--no-progress --no-ansi"
    9697
    9798      - name: Make Composer packages available globally
     
    117118  # - Checks out the repository.
    118119  # - Logs debug information about the GitHub Action runner.
    119   # - Installs NodeJS.
     120  # - Installs Node.js.
    120121  # - Logs updated debug information.
    121   # _ Installs NPM dependencies.
     122  # _ Installs npm dependencies.
    122123  # - Run the WordPress JSHint checks.
    123124  # - Ensures version-controlled files are not modified or deleted.
     
    132133    steps:
    133134      - name: Checkout repository
    134         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     135        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    135136
    136137      - name: Log debug information
     
    141142          svn --version
    142143
    143       - name: Install NodeJS
    144         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     144      - name: Install Node.js
     145        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    145146        with:
    146147          node-version-file: '.nvmrc'
     
    173174      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    174175      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     176
     177  failed-workflow:
     178    name: Failed workflow tasks
     179    runs-on: ubuntu-latest
     180    needs: [ phpcs, jshint, slack-notifications ]
     181    if: |
     182      always() &&
     183      github.repository == 'WordPress/wordpress-develop' &&
     184      github.event_name != 'pull_request' &&
     185      github.run_attempt < 2 &&
     186      (
     187        needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' ||
     188        needs.jshint.result == 'cancelled' || needs.jshint.result == 'failure'
     189      )
     190
     191    steps:
     192      - name: Dispatch workflow run
     193        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     194        with:
     195          retries: 2
     196          retry-exempt-status-codes: 418
     197          script: |
     198            github.rest.actions.createWorkflowDispatch({
     199              owner: context.repo.owner,
     200              repo: context.repo.repo,
     201              workflow_id: 'failed-workflow.yml',
     202              ref: 'trunk',
     203              inputs: {
     204                run_id: '${{ github.run_id }}'
     205              }
     206            });
  • branches/5.9/.github/workflows/end-to-end-tests.yml

    r53596 r55516  
    99      - '[6-9].[0-9]'
    1010    tags:
    11       - '5.[3-9]*'
    12       - '[6-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '![34].[0-9].[0-9]+'
     14      - '!5.[0-2].[0-9]+'
    1315  pull_request:
    1416    branches:
     
    3537  # - Checks out the repository.
    3638  # - Logs debug information about the GitHub Action runner.
    37   # - Installs NodeJS.
    38   # _ Installs NPM dependencies.
     39  # - Installs Node.js.
     40  # _ Installs npm dependencies.
    3941  # - Builds WordPress to run from the `build` directory.
    4042  # - Starts the WordPress Docker container.
     
    5860
    5961      - name: Checkout repository
    60         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     62        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6163
    6264      - name: Log debug information
     
    7173          locale -a
    7274
    73       - name: Install NodeJS
    74         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     75      - name: Install Node.js
     76        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    7577        with:
    7678          node-version-file: '.nvmrc'
     
    129131      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    130132      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     133
     134  failed-workflow:
     135    name: Failed workflow tasks
     136    runs-on: ubuntu-latest
     137    needs: [ e2e-tests, slack-notifications ]
     138    if: |
     139      always() &&
     140      github.repository == 'WordPress/wordpress-develop' &&
     141      github.event_name != 'pull_request' &&
     142      github.run_attempt < 2 &&
     143      (
     144        needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure'
     145      )
     146
     147    steps:
     148      - name: Dispatch workflow run
     149        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     150        with:
     151          retries: 2
     152          retry-exempt-status-codes: 418
     153          script: |
     154            github.rest.actions.createWorkflowDispatch({
     155              owner: context.repo.owner,
     156              repo: context.repo.repo,
     157              workflow_id: 'failed-workflow.yml',
     158              ref: 'trunk',
     159              inputs: {
     160                run_id: '${{ github.run_id }}'
     161              }
     162            });
  • branches/5.9/.github/workflows/javascript-tests.yml

    r53596 r55516  
    99      - '[4-9].[0-9]'
    1010    tags:
    11       - '3.[89]*'
    12       - '[4-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '!3.7.[0-9]+'
    1314  pull_request:
    1415    branches:
     
    1920      # Any change to a JavaScript file should run tests.
    2021      - '**.js'
    21       # These files configure NPM. Changes could affect the outcome.
     22      # These files configure npm. Changes could affect the outcome.
    2223      - 'package*.json'
    2324      # This file configures ESLint. Changes could affect the outcome.
     
    4445  # - Checks out the repository.
    4546  # - Logs debug information about the GitHub Action runner.
    46   # - Installs NodeJS.
     47  # - Installs Node.js.
    4748  # - Logs updated debug information.
    48   # _ Installs NPM dependencies.
     49  # _ Installs npm dependencies.
    4950  # - Run the WordPress QUnit tests.
    5051  # - Ensures version-controlled files are not modified or deleted.
     
    5758    steps:
    5859      - name: Checkout repository
    59         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     60        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6061
    6162      - name: Log debug information
     
    6667          svn --version
    6768
    68       - name: Install NodeJS
    69         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     69      - name: Install Node.js
     70        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    7071        with:
    7172          node-version-file: '.nvmrc'
     
    9899      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    99100      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     101
     102  failed-workflow:
     103    name: Failed workflow tasks
     104    runs-on: ubuntu-latest
     105    needs: [ test-js, slack-notifications ]
     106    if: |
     107      always() &&
     108      github.repository == 'WordPress/wordpress-develop' &&
     109      github.event_name != 'pull_request' &&
     110      github.run_attempt < 2 &&
     111      (
     112        needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure'
     113      )
     114
     115    steps:
     116      - name: Dispatch workflow run
     117        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     118        with:
     119          retries: 2
     120          retry-exempt-status-codes: 418
     121          script: |
     122            github.rest.actions.createWorkflowDispatch({
     123              owner: context.repo.owner,
     124              repo: context.repo.repo,
     125              workflow_id: 'failed-workflow.yml',
     126              ref: 'trunk',
     127              inputs: {
     128                run_id: '${{ github.run_id }}'
     129              }
     130            });
  • branches/5.9/.github/workflows/php-compatibility.yml

    r53596 r55516  
    99      - '[6-9].[0-9]'
    1010    tags:
    11       - '5.[5-9]*'
    12       - '[6-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '![34].[0-9].[0-9]+'
     14      - '!5.[0-4].[0-9]+'
    1315  pull_request:
    1416    branches:
     
    5860    steps:
    5961      - name: Checkout repository
    60         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     62        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6163
    6264      - name: Set up PHP
    63         uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
     65        uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
    6466        with:
    6567          php-version: '7.4'
     
    7678      - name: "Get last Monday's date"
    7779        id: get-date
    78         run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
     80        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
    7981
    8082      - name: Cache PHP compatibility scan cache
    81         uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
     83        uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
    8284        with:
    8385          path: .cache/phpcompat.json
     
    8587
    8688      - name: Install Composer dependencies
    87         uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
     89        uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
    8890        with:
    89           composer-options: "--no-progress --no-ansi --no-interaction"
     91          composer-options: "--no-progress --no-ansi"
    9092
    9193      - name: Make Composer packages available globally
     
    113115      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    114116      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     117
     118  failed-workflow:
     119    name: Failed workflow tasks
     120    runs-on: ubuntu-latest
     121    needs: [ php-compatibility, slack-notifications ]
     122    if: |
     123      always() &&
     124      github.repository == 'WordPress/wordpress-develop' &&
     125      github.event_name != 'pull_request' &&
     126      github.run_attempt < 2 &&
     127      (
     128        needs.php-compatibility.result == 'cancelled' || needs.php-compatibility.result == 'failure'
     129      )
     130
     131    steps:
     132      - name: Dispatch workflow run
     133        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     134        with:
     135          retries: 2
     136          retry-exempt-status-codes: 418
     137          script: |
     138            github.rest.actions.createWorkflowDispatch({
     139              owner: context.repo.owner,
     140              repo: context.repo.repo,
     141              workflow_id: 'failed-workflow.yml',
     142              ref: 'trunk',
     143              inputs: {
     144                run_id: '${{ github.run_id }}'
     145              }
     146            });
  • branches/5.9/.github/workflows/phpunit-tests.yml

    r53596 r55516  
    88      - '[4-9].[0-9]'
    99    tags:
    10       - '3.[7-9]*'
    11       - '[4-9].[0-9]*'
     10      - '[0-9]+.[0-9]'
     11      - '[0-9]+.[0-9].[0-9]+'
    1212  pull_request:
    1313    branches:
     
    4141  # - Sets environment variables.
    4242  # - Sets up the environment variables needed for testing with memcached (if desired).
    43   # - Installs NodeJS.
    44   # - Installs NPM dependencies
     43  # - Installs Node.js.
     44  # - Installs npm dependencies
    4545  # - Configures caching for Composer.
    4646  # - Installs Composer dependencies.
     
    111111
    112112      - name: Checkout repository
    113         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
    114 
    115       - name: Install NodeJS
    116         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     113        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
     114
     115      - name: Install Node.js
     116        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    117117        with:
    118118          node-version-file: '.nvmrc'
    119119          cache: npm
    120120
    121       - name: Install Dependencies
     121      - name: Install npm dependencies
    122122        run: npm ci
    123123
     
    126126      - name: "Get last Monday's date"
    127127        id: get-date
    128         run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
     128        run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT
    129129
    130130      - name: Get Composer cache directory
    131131        id: composer-cache
    132         run: echo "::set-output name=dir::$(composer config cache-files-dir)"
     132        run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
    133133
    134134      - name: Cache Composer dependencies
    135         uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
     135        uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
    136136        env:
    137137          cache-name: cache-composer-dependencies
    138138        with:
    139           path: ${{ steps.composer-cache.outputs.dir }}
     139          path: ${{ steps.composer-cache.outputs.composer_dir }}
    140140          key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }}
    141141
     
    232232      - name: Checkout the WordPress Test Reporter
    233233        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
    234         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     234        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    235235        with:
    236236          repository: 'WordPress/phpunit-test-runner'
     
    255255      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    256256      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     257
     258  failed-workflow:
     259    name: Failed workflow tasks
     260    runs-on: ubuntu-latest
     261    needs: [ test-php, slack-notifications ]
     262    if: |
     263      always() &&
     264      github.repository == 'WordPress/wordpress-develop' &&
     265      github.event_name != 'pull_request' &&
     266      github.run_attempt < 2 &&
     267      (
     268        needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure'
     269      )
     270
     271    steps:
     272      - name: Dispatch workflow run
     273        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     274        with:
     275          retries: 2
     276          retry-exempt-status-codes: 418
     277          script: |
     278            github.rest.actions.createWorkflowDispatch({
     279              owner: context.repo.owner,
     280              repo: context.repo.repo,
     281              workflow_id: 'failed-workflow.yml',
     282              ref: 'trunk',
     283              inputs: {
     284                run_id: '${{ github.run_id }}'
     285              }
     286            });
  • branches/5.9/.github/workflows/test-npm.yml

    r53596 r55516  
    1 name: Test NPM
     1name: Test npm
    22
    33on:
     
    77      - '3.[7-9]'
    88      - '[4-9].[0-9]'
     9    tags:
     10      - '[0-9]+.[0-9]'
     11      - '[0-9]+.[0-9].[0-9]+'
    912  pull_request:
    1013    branches:
     
    1316      - '[4-9].[0-9]'
    1417    paths:
    15       # These files configure NPM. Changes could affect the outcome.
     18      # These files configure npm. Changes could affect the outcome.
    1619      - 'package*.json'
    17       # JavaScript files are built using NPM.
     20      # JavaScript files are built using npm.
    1821      - '**.js'
    19       # CSS and SCSS files are built using NPM.
     22      # CSS and SCSS files are built using npm.
    2023      - '**.scss'
    2124      - '**.css'
     
    3538
    3639jobs:
    37   # Verifies that installing NPM dependencies and building WordPress works as expected.
     40  # Verifies that installing npm dependencies and building WordPress works as expected.
    3841  #
    3942  # Performs the following steps:
    4043  # - Checks out the repository.
    4144  # - Logs debug information about the GitHub Action runner.
    42   # - Installs NodeJS.
    43   # _ Installs NPM dependencies.
     45  # - Installs Node.js.
     46  # _ Installs npm dependencies.
    4447  # - Builds WordPress to run from the `build` directory.
    4548  # - Cleans up after building WordPress to the `build` directory.
     
    4952  # - Ensures version-controlled files are not modified or deleted.
    5053  test-npm:
    51     name: Test NPM on ${{ matrix.os }}
     54    name: Test npm on ${{ matrix.os }}
    5255    runs-on: ${{ matrix.os }}
    5356    timeout-minutes: 20
     
    6063    steps:
    6164      - name: Checkout repository
    62         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     65        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6366
    6467      - name: Log debug information
     
    7073          svn --version
    7174
    72       - name: Install NodeJS
    73         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     75      - name: Install Node.js
     76        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    7477        with:
    7578          node-version-file: '.nvmrc'
     
    97100        run: git diff --exit-code
    98101
    99   # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
     102  # Verifies that installing npm dependencies and building WordPress works as expected on MacOS.
    100103  #
    101104  # This is separate from the job above in order to use stricter conditions about when to run.
    102105  # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.
     106  #
     107  # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is
     108  # currently no way to determine the OS being used on a given job.
     109  # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability.
    103110  #
    104111  # Performs the following steps:
    105112  # - Checks out the repository.
    106113  # - Logs debug information about the GitHub Action runner.
    107   # - Installs NodeJS.
    108   # _ Installs NPM dependencies.
     114  # - Installs Node.js.
     115  # _ Installs npm dependencies.
    109116  # - Builds WordPress to run from the `build` directory.
    110117  # - Cleans up after building WordPress to the `build` directory.
     
    114121  # - Ensures version-controlled files are not modified or deleted.
    115122  test-npm-macos:
    116     name: Test NPM on MacOS
     123    name: Test npm on MacOS
    117124    runs-on: macos-latest
    118     timeout-minutes: 20
     125    timeout-minutes: 30
    119126    if: ${{ github.repository == 'WordPress/wordpress-develop' }}
    120127    steps:
    121128      - name: Checkout repository
    122         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     129        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    123130
    124131      - name: Log debug information
     
    130137          svn --version
    131138
    132       - name: Install NodeJS
    133         uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
     139      - name: Install Node.js
     140        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    134141        with:
    135142          node-version-file: '.nvmrc'
     
    169176      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    170177      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     178
     179  failed-workflow:
     180    name: Failed workflow tasks
     181    runs-on: ubuntu-latest
     182    needs: [ test-npm, test-npm-macos, slack-notifications ]
     183    if: |
     184      always() &&
     185      github.repository == 'WordPress/wordpress-develop' &&
     186      github.event_name != 'pull_request' &&
     187      github.run_attempt < 2 &&
     188      (
     189        needs.test-npm.result == 'cancelled' || needs.test-npm.result == 'failure' ||
     190        needs.test-npm-macos.result == 'cancelled' || needs.test-npm-macos.result == 'failure'
     191      )
     192
     193    steps:
     194      - name: Dispatch workflow run
     195        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     196        with:
     197          retries: 2
     198          retry-exempt-status-codes: 418
     199          script: |
     200            github.rest.actions.createWorkflowDispatch({
     201              owner: context.repo.owner,
     202              repo: context.repo.repo,
     203              workflow_id: 'failed-workflow.yml',
     204              ref: 'trunk',
     205              inputs: {
     206                run_id: '${{ github.run_id }}'
     207              }
     208            });
  • branches/5.9/.github/workflows/welcome-new-contributors.yml

    r52233 r55516  
    1313
    1414    steps:
    15       - uses: bubkoo/welcome-action@8dbbac2540d155744c90e4e37da6b05ffc9c5e2c # v1.0.3
     15      - uses: wow-actions/welcome@72817eb31cda1de60f51893d80e2e82ce57f7e76 # v1.3.0
    1616        with:
    17           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    1817          FIRST_PR_COMMENT: >
    1918            Hi @{{ author }}! 👋
Note: See TracChangeset for help on using the changeset viewer.