We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a72b65 commit fdfb70aCopy full SHA for fdfb70a
.github/actions/send-notification/action.yml
@@ -63,5 +63,6 @@ runs:
63
# Output status
64
echo "result=$runStatus" >> $GITHUB_OUTPUT
65
- shell: bash
66
+ if: ${{ contains(fromJSON('["failed", "cancelled", "unsuccessful"]'), steps.run-info.outputs.result) }}
67
run: |
68
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ "text": "${{ env.WORKFLOW_STATUS }}\n${{ env.WORKFLOW_INFO }}: ${{ env.RUN_INFO }}\n\n${{ env.JOB_INFO }}" }' || true
0 commit comments