Changeset 52002 for trunk/.github/workflows/slack-notifications.yml
- Timestamp:
- 11/03/2021 02:54:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note: See TracChangeset
for help on using the changeset viewer.