Make WordPress Core


Ignore:
Timestamp:
03/10/2023 04:08:39 PM (2 years 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.
  • backports some Docker environment related tooling updates for the sake of consistency across branches.

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

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/.github/workflows/php-compatibility.yml

    r53607 r55520  
    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:
     
    5658    steps:
    5759      - name: Checkout repository
    58         uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
     60        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    5961
    6062      - name: Set up PHP
    61         uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
     63        uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
    6264        with:
    6365          php-version: '7.4'
     
    7173
    7274      - name: Install Composer dependencies
    73         uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
     75        uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
    7476        with:
    75           composer-options: "--no-progress --no-ansi --no-interaction"
     77          composer-options: "--no-progress --no-ansi"
    7678
    7779      - name: Make Composer packages available globally
     
    9698      SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
    9799      SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     100
     101  failed-workflow:
     102    name: Failed workflow tasks
     103    runs-on: ubuntu-latest
     104    needs: [ php-compatibility, slack-notifications ]
     105    if: |
     106      always() &&
     107      github.repository == 'WordPress/wordpress-develop' &&
     108      github.event_name != 'pull_request' &&
     109      github.run_attempt < 2 &&
     110      (
     111        needs.php-compatibility.result == 'cancelled' || needs.php-compatibility.result == 'failure'
     112      )
     113
     114    steps:
     115      - name: Dispatch workflow run
     116        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     117        with:
     118          retries: 2
     119          retry-exempt-status-codes: 418
     120          script: |
     121            github.rest.actions.createWorkflowDispatch({
     122              owner: context.repo.owner,
     123              repo: context.repo.repo,
     124              workflow_id: 'failed-workflow.yml',
     125              ref: 'trunk',
     126              inputs: {
     127                run_id: '${{ github.run_id }}'
     128              }
     129            });
Note: See TracChangeset for help on using the changeset viewer.