Changeset 55516 for branches/5.9/.github/workflows/php-compatibility.yml
- Timestamp:
- 03/10/2023 03:52:41 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/.github/workflows/php-compatibility.yml
r53596 r55516 9 9 - '[6-9].[0-9]' 10 10 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]+' 13 15 pull_request: 14 16 branches: … … 58 60 steps: 59 61 - name: Checkout repository 60 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.262 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 61 63 62 64 - name: Set up PHP 63 uses: shivammathur/setup-php@ 3eda58347216592f618bb1dff277810b6698e4ca # v2.19.165 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 64 66 with: 65 67 php-version: '7.4' … … 76 78 - name: "Get last Monday's date" 77 79 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 79 81 80 82 - name: Cache PHP compatibility scan cache 81 uses: actions/cache@ c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.483 uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6 82 84 with: 83 85 path: .cache/phpcompat.json … … 85 87 86 88 - name: Install Composer dependencies 87 uses: ramsey/composer-install@ f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.089 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 88 90 with: 89 composer-options: "--no-progress --no-ansi --no-interaction"91 composer-options: "--no-progress --no-ansi" 90 92 91 93 - name: Make Composer packages available globally … … 113 115 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 114 116 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 });
Note: See TracChangeset
for help on using the changeset viewer.