Changeset 55520 for branches/5.5/.github/workflows/coding-standards.yml
- Timestamp:
- 03/10/2023 04:08:39 PM (3 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
.github/workflows/coding-standards.yml (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 53736-53737,53940,53947,54039,54096,54108,54293,54313,54342-54343,54373,54511,54649-54651,54674,54750,54852,55152,55487
- Property svn:mergeinfo changed
-
branches/5.5/.github/workflows/coding-standards.yml
r53600 r55520 10 10 - '[4-9].[0-9]' 11 11 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]+' 14 15 pull_request: 15 16 branches: … … 21 22 - '**.js' 22 23 - '**.php' 23 # These files configure NPM. Changes could affect the outcome.24 # These files configure npm. Changes could affect the outcome. 24 25 - 'package*.json' 25 26 # These files configure Composer. Changes could affect the outcome. … … 62 63 steps: 63 64 - name: Checkout repository 64 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.265 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 65 66 66 67 - name: Set up PHP 67 uses: shivammathur/setup-php@ 3eda58347216592f618bb1dff277810b6698e4ca # v2.19.168 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 68 69 with: 69 70 php-version: '7.4' … … 77 78 78 79 - name: Install Composer dependencies 79 uses: ramsey/composer-install@ f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.080 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 80 81 with: 81 composer-options: "--no-progress --no-ansi --no-interaction"82 composer-options: "--no-progress --no-ansi" 82 83 83 84 - name: Make Composer packages available globally … … 100 101 # - Checks out the repository. 101 102 # - Logs debug information about the GitHub Action runner. 102 # - Installs Node JS.103 # - Installs Node.js. 103 104 # - Logs updated debug information. 104 # _ Installs NPMdependencies.105 # _ Installs npm dependencies. 105 106 # - Run the WordPress JSHint checks. 106 107 jshint: … … 114 115 steps: 115 116 - name: Checkout repository 116 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2117 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 117 118 118 119 - name: Log debug information … … 123 124 svn --version 124 125 125 - name: Install Node JS126 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0126 - name: Install Node.js 127 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 127 128 with: 128 129 node-version-file: '.nvmrc' … … 152 153 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 153 154 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 155 156 failed-workflow: 157 name: Failed workflow tasks 158 runs-on: ubuntu-latest 159 needs: [ phpcs, jshint, slack-notifications ] 160 if: | 161 always() && 162 github.repository == 'WordPress/wordpress-develop' && 163 github.event_name != 'pull_request' && 164 github.run_attempt < 2 && 165 ( 166 needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' || 167 needs.jshint.result == 'cancelled' || needs.jshint.result == 'failure' 168 ) 169 170 steps: 171 - name: Dispatch workflow run 172 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 173 with: 174 retries: 2 175 retry-exempt-status-codes: 418 176 script: | 177 github.rest.actions.createWorkflowDispatch({ 178 owner: context.repo.owner, 179 repo: context.repo.repo, 180 workflow_id: 'failed-workflow.yml', 181 ref: 'trunk', 182 inputs: { 183 run_id: '${{ github.run_id }}' 184 } 185 });
Note: See TracChangeset
for help on using the changeset viewer.