Make WordPress Core


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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            });
Note: See TracChangeset for help on using the changeset viewer.