Changeset 53947 for trunk/.github/workflows/javascript-tests.yml
- Timestamp:
- 08/26/2022 07:19:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/javascript-tests.yml
r53940 r53947 99 99 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 100 100 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 101 102 failed-workflow: 103 name: Failed workflow tasks 104 runs-on: ubuntu-latest 105 needs: [ test-js, slack-notifications ] 106 if: | 107 always() && 108 github.repository == 'WordPress/wordpress-develop' && 109 github.event_name != 'pull_request' && 110 github.run_number < 2 && 111 ( 112 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 113 ) 114 115 steps: 116 - name: Dispatch workflow run 117 uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0 118 with: 119 github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }} 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: '${{ github.ref_name }}', 126 inputs: { 127 run_id: '${{ github.run_id }}' 128 } 129 });
Note: See TracChangeset
for help on using the changeset viewer.