Skip to content

Commit fdfb70a

Browse files
committed
Send notification only on failure or cancelled
Closes gh-59
1 parent 5a72b65 commit fdfb70a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/send-notification/action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ runs:
6363
# Output status
6464
echo "result=$runStatus" >> $GITHUB_OUTPUT
6565
- shell: bash
66+
if: ${{ contains(fromJSON('["failed", "cancelled", "unsuccessful"]'), steps.run-info.outputs.result) }}
6667
run: |
6768
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

Comments
 (0)