Changeset 53947 for trunk/.github/workflows/test-npm.yml
- Timestamp:
- 08/26/2022 07:19:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/test-npm.yml
r53940 r53947 172 172 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 173 173 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 174 175 failed-workflow: 176 name: Failed workflow tasks 177 runs-on: ubuntu-latest 178 needs: [ test-npm, test-npm-macos, slack-notifications ] 179 if: | 180 always() && 181 github.repository == 'WordPress/wordpress-develop' && 182 github.event_name != 'pull_request' && 183 github.run_number < 2 && 184 ( 185 needs.test-npm.result == 'cancelled' || needs.test-npm.result == 'failure' || 186 needs.test-npm-macos.result == 'cancelled' || needs.test-npm-macos.result == 'failure' 187 ) 188 189 steps: 190 - name: Dispatch workflow run 191 uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0 192 with: 193 github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }} 194 script: | 195 github.rest.actions.createWorkflowDispatch({ 196 owner: context.repo.owner, 197 repo: context.repo.repo, 198 workflow_id: 'failed-workflow.yml', 199 ref: '${{ github.ref_name }}', 200 inputs: { 201 run_id: '${{ github.run_id }}' 202 } 203 });
Note: See TracChangeset
for help on using the changeset viewer.