-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve a series of existing issues (#162)
* Add escape sequences using ``echo -e`` * Add better logging for unexpected exit * Add ability to supply custom payloads * Add markdown formatting for messages * Allow custom messages for different statuses * Add ability to send messages in threads * Update footer to link the run message was sent from * Fix main.sh for correct binary location * Update go version * Update alpine version * Automate builds for ARM and x86 linux images
- Loading branch information
Showing
5 changed files
with
247 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,28 @@ name: 'Slack Notify' | |
description: 'This action will send a notification to Slack' | ||
author: 'rtCamp' | ||
runs: | ||
using: 'docker' | ||
image: 'docker://ghcr.io/rtcamp/action-slack-notify:v2.2.1' | ||
using: 'composite' | ||
steps: | ||
- name: "Slack-Markdown Conversion" | ||
if: env.SLACKIFY_MARKDOWN == 'true' | ||
id: slackify | ||
uses: LoveToKnow/[email protected] | ||
with: | ||
text: ${{ env.SLACK_MESSAGE }} | ||
|
||
- name: "Slack Notification (Formatted)" | ||
if: env.SLACKIFY_MARKDOWN == 'true' | ||
env: | ||
SLACK_MESSAGE: "${{ steps.slackify.outputs.text }}" | ||
GITHUB_RUN: "${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}" | ||
ENABLE_ESCAPES: "true" | ||
uses: "docker://ghcr.io/rtcamp/action-slack-notify:v2.2.1" | ||
|
||
- name: "Slack Notification (Unformatted)" | ||
if: env.SLACKIFY_MARKDOWN != 'true' | ||
uses: "docker://ghcr.io/rtcamp/action-slack-notify:v2.2.1" | ||
env: | ||
GITHUB_RUN: "${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}" | ||
branding: | ||
icon: 'bell' | ||
color: 'yellow' | ||
color: 'yellow' |
Oops, something went wrong.