A GitHub Action for sending build status alerts to a Slack channel.
uses: andrewscwei/slack-action@v1
with:
success: ${{ needs.build.result == 'success' }}
cancelled: ${{ needs.build.result == 'cancelled' }}
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
The prefix to use in a success alert, defaults to 😎.
The prefix to use in a failure alert, defaults to 😱.
Required: The incoming webhook URL.
Required: Specifies whether this is a success or failure alert.
Specifies whether this is a cancelled alert.
Label of the action button. If provided along with action-url
, the action button will be visible if success
is true
.
Link of the action button. If provided along with action-label
, the action button will be visible if success
is true
.
Posts a more detailed version of the alert if enabled (defaults to true
).
The response of the Slack API request.