Changeset 55524 for branches/5.1/.github/workflows/coding-standards.yml
- Timestamp:
- 03/10/2023 04:25:26 PM (2 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 53736-53737,53940,53947,54039,54096,54108,54293,54313,54342-54343,54373,54511,54650-54651,54674,54750,54852,55152,55487
- Property svn:mergeinfo changed
-
branches/5.1/.github/workflows/coding-standards.yml
r53604 r55524 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. … … 61 62 steps: 62 63 - name: Checkout repository 63 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.264 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 64 65 65 66 - name: Set up PHP 66 uses: shivammathur/setup-php@ 3eda58347216592f618bb1dff277810b6698e4ca # v2.19.167 uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0 67 68 with: 68 69 php-version: '7.2' … … 76 77 77 78 - name: Install Composer dependencies 78 uses: ramsey/composer-install@ f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.079 uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0 79 80 with: 80 composer-options: "--no-progress --no-ansi --no-interaction"81 composer-options: "--no-progress --no-ansi" 81 82 82 83 - name: Make Composer packages available globally … … 98 99 # - Installs NodeJS. 99 100 # - Logs updated debug information. 100 # _ Installs NPMdependencies.101 # _ Installs npm dependencies. 101 102 # - Run the WordPress JSHint checks. 102 103 jshint: … … 110 111 steps: 111 112 - name: Checkout repository 112 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2113 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 113 114 114 115 - name: Log debug information … … 119 120 svn --version 120 121 121 - name: Install NodeJS122 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0122 - name: Set up Node.js 123 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 123 124 with: 124 125 node-version-file: '.nvmrc' … … 148 149 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 149 150 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 151 152 failed-workflow: 153 name: Failed workflow tasks 154 runs-on: ubuntu-latest 155 needs: [ phpcs, jshint, slack-notifications ] 156 if: | 157 always() && 158 github.repository == 'WordPress/wordpress-develop' && 159 github.event_name != 'pull_request' && 160 github.run_attempt < 2 && 161 ( 162 needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' || 163 needs.jshint.result == 'cancelled' || needs.jshint.result == 'failure' 164 ) 165 166 steps: 167 - name: Dispatch workflow run 168 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 169 with: 170 retries: 2 171 retry-exempt-status-codes: 418 172 script: | 173 github.rest.actions.createWorkflowDispatch({ 174 owner: context.repo.owner, 175 repo: context.repo.repo, 176 workflow_id: 'failed-workflow.yml', 177 ref: 'trunk', 178 inputs: { 179 run_id: '${{ github.run_id }}' 180 } 181 });
Note: See TracChangeset
for help on using the changeset viewer.