Changeset 52002
- Timestamp:
- 11/03/2021 02:54:20 PM (3 years ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/coding-standards.yml
r51937 r52002 153 153 needs: [ phpcs, jshint ] 154 154 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 155 with: 156 calling_status: ${{ needs.phpcs.result == 'success' && needs.jshint.result == 'success' && 'success' || ( needs.phpcs.result == 'cancelled' || needs.jshint.result == 'cancelled' ) && 'cancelled' || 'failure' }} 155 157 secrets: 156 158 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/end-to-end-tests.yml
r51937 r52002 123 123 needs: [ e2e-tests ] 124 124 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 125 with: 126 calling_status: ${{ needs.e2e-tests.result == 'success' && 'success' || needs.e2e-tests.result == 'cancelled' && 'cancelled' || 'failure' }} 125 127 secrets: 126 128 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/javascript-tests.yml
r51937 r52002 92 92 needs: [ test-js ] 93 93 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 94 with: 95 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }} 94 96 secrets: 95 97 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/php-compatibility.yml
r51937 r52002 94 94 needs: [ php-compatibility ] 95 95 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 96 with: 97 calling_status: ${{ needs.php-compatibility.result == 'success' && 'success' || needs.php-compatibility.result == 'cancelled' && 'cancelled' || 'failure' }} 96 98 secrets: 97 99 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/phpunit-tests.yml
r51937 r52002 249 249 needs: [ test-php ] 250 250 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 251 with: 252 calling_status: ${{ needs.test-php.result == 'success' && 'success' || needs.test-php.result == 'cancelled' && 'cancelled' || 'failure' }} 251 253 secrets: 252 254 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/slack-notifications.yml
r51954 r52002 24 24 25 25 workflow_call: 26 inputs: 27 calling_status: 28 description: 'The status of the calling workflow' 29 type: string 30 required: true 26 31 secrets: 27 32 SLACK_GHA_SUCCESS_WEBHOOK: … … 126 131 runs-on: ubuntu-latest 127 132 needs: [ prepare ] 128 if: ${{ github.event_name == ' push' && failure() || github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure'}}133 if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' || inputs.calling_status == 'failure' || failure() }} 129 134 130 135 steps: … … 141 146 runs-on: ubuntu-latest 142 147 needs: [ prepare ] 143 if: ${{ needs.prepare.outputs.previous_conclusion == 'failure' && ( github.event_name == ' push' && success() || github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}148 if: ${{ needs.prepare.outputs.previous_conclusion == 'failure' && ( github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' ) && success() }} 144 149 145 150 steps: … … 156 161 runs-on: ubuntu-latest 157 162 needs: [ prepare ] 158 if: ${{ github.event_name == ' push' && success() || github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'}}163 if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' && success() }} 159 164 160 165 steps: … … 171 176 runs-on: ubuntu-latest 172 177 needs: [ prepare ] 173 if: ${{ github.event_name == ' push' && cancelled() || github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'cancelled'}}178 if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'cancelled' || inputs.calling_status == 'cancelled' || cancelled() }} 174 179 175 180 steps: -
trunk/.github/workflows/test-coverage.yml
r51937 r52002 175 175 needs: [ test-coverage-report ] 176 176 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 177 with: 178 calling_status: ${{ needs.test-coverage-report.result == 'success' && 'success' || needs.test-coverage-report.result == 'cancelled' && 'cancelled' || 'failure' }} 177 179 secrets: 178 180 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/test-npm.yml
r51937 r52002 161 161 needs: [ test-npm, test-npm-macos ] 162 162 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 163 with: 164 calling_status: ${{ needs.test-npm.result == 'success' && needs.test-npm-macos.result == 'success' && 'success' || ( needs.test-npm.result == 'cancelled' || needs.test-npm-macos.result == 'cancelled' ) && 'cancelled' || 'failure' }} 163 165 secrets: 164 166 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} -
trunk/.github/workflows/test-old-branches.yml
r51937 r52002 76 76 needs: [ dispatch-workflows-for-old-branches ] 77 77 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 78 with: 79 calling_status: ${{ needs.dispatch-workflows-for-old-branches.result == 'success' && 'success' || needs.dispatch-workflows-for-old-branches.result == 'cancelled' && 'cancelled' || 'failure' }} 78 80 secrets: 79 81 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
Note: See TracChangeset
for help on using the changeset viewer.