Merge branch '3.2.x'
This commit is contained in:
6
.github/actions/send-notification/action.yml
vendored
6
.github/actions/send-notification/action.yml
vendored
@@ -22,12 +22,12 @@ runs:
|
|||||||
- shell: bash
|
- shell: bash
|
||||||
if: ${{ inputs.status == 'success' }}
|
if: ${{ inputs.status == 'success' }}
|
||||||
run: |
|
run: |
|
||||||
curl -X POST ${{ inputs.webhook-url }} -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was successful ${{ env.BUILD_SCAN }}"}' || true
|
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was successful ${{ env.BUILD_SCAN }}"}' || true
|
||||||
- shell: bash
|
- shell: bash
|
||||||
if: ${{ inputs.status == 'failure' }}
|
if: ${{ inputs.status == 'failure' }}
|
||||||
run: |
|
run: |
|
||||||
curl -X POST ${{ inputs.webhook-url }} -H 'Content-Type: application/json' -d '{ text: "<users/all> *<${{ env.RUN_URL }}|${{ inputs.run-name }}> failed* ${{ env.BUILD_SCAN }}"}' || true
|
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<users/all> *<${{ env.RUN_URL }}|${{ inputs.run-name }}> failed* ${{ env.BUILD_SCAN }}"}' || true
|
||||||
- shell: bash
|
- shell: bash
|
||||||
if: ${{ inputs.status == 'cancelled' }}
|
if: ${{ inputs.status == 'cancelled' }}
|
||||||
run: |
|
run: |
|
||||||
curl -X POST ${{ inputs.webhook-url }} -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was cancelled"}' || true
|
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was cancelled"}' || true
|
||||||
|
|||||||
Reference in New Issue
Block a user