Changeset 55482 for branches/6.0/.github/workflows/test-coverage.yml
- Timestamp:
- 03/07/2023 07:36:29 PM (3 years ago)
- File:
-
- 1 edited
-
branches/6.0/.github/workflows/test-coverage.yml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/.github/workflows/test-coverage.yml
r53112 r55482 90 90 - name: "Get last Monday's date" 91 91 id: get-date 92 run: echo " ::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"92 run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT 93 93 94 94 - name: Get Composer cache directory 95 95 id: composer-cache 96 run: echo " ::set-output name=dir::$(composer config cache-files-dir)"96 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT 97 97 98 98 - name: Cache Composer dependencies … … 101 101 cache-name: cache-composer-dependencies 102 102 with: 103 path: ${{ steps.composer-cache.outputs. dir }}103 path: ${{ steps.composer-cache.outputs.composer_dir }} 104 104 key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }} 105 105 … … 182 182 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 183 183 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 184 185 failed-workflow: 186 name: Failed workflow tasks 187 runs-on: ubuntu-latest 188 needs: [ test-coverage-report, slack-notifications ] 189 if: | 190 always() && 191 github.repository == 'WordPress/wordpress-develop' && 192 github.event_name != 'pull_request' && 193 github.run_attempt < 2 && 194 ( 195 needs.test-coverage-report.result == 'cancelled' || needs.test-coverage-report.result == 'failure' 196 ) 197 198 steps: 199 - name: Dispatch workflow run 200 uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0 201 with: 202 retries: 2 203 retry-exempt-status-codes: 418 204 script: | 205 github.rest.actions.createWorkflowDispatch({ 206 owner: context.repo.owner, 207 repo: context.repo.repo, 208 workflow_id: 'failed-workflow.yml', 209 ref: 'trunk', 210 inputs: { 211 run_id: '${{ github.run_id }}' 212 } 213 });
Note: See TracChangeset
for help on using the changeset viewer.