Changeset 53947 for trunk/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 08/26/2022 07:19:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/end-to-end-tests.yml
r53940 r53947 131 131 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 132 132 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 133 134 failed-workflow: 135 name: Failed workflow tasks 136 runs-on: ubuntu-latest 137 needs: [ e2e-tests, slack-notifications ] 138 if: | 139 always() && 140 github.repository == 'WordPress/wordpress-develop' && 141 github.event_name != 'pull_request' && 142 github.run_number < 2 && 143 ( 144 needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure' 145 ) 146 147 steps: 148 - name: Dispatch workflow run 149 uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0 150 with: 151 github-token: ${{ secrets.GHA_WORKFLOW_DISPATCH }} 152 script: | 153 github.rest.actions.createWorkflowDispatch({ 154 owner: context.repo.owner, 155 repo: context.repo.repo, 156 workflow_id: 'failed-workflow.yml', 157 ref: '${{ github.ref_name }}', 158 inputs: { 159 run_id: '${{ github.run_id }}' 160 } 161 });
Note: See TracChangeset
for help on using the changeset viewer.