forked from AlabamaWaterInstitute/CloudInfra
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish slack message to slack channel (#20)
* add actions to publish slack messages
- Loading branch information
1 parent
e0b8530
commit ff42676
Showing
6 changed files
with
48 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Send Slack Message | ||
description: "Send slack message to a channel" | ||
|
||
inputs: | ||
slack-webhook-url: | ||
description: 'Slack webhook url' | ||
required: true | ||
job-status: | ||
description: 'Job status' | ||
required: true | ||
pull_request_url: | ||
description: 'Pull request url' | ||
required: true | ||
head_commit_url: | ||
description: 'Head commit url' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: send slack message | ||
uses: slackapi/slack-github-action@v1.24.0 | ||
with: | ||
payload: | | ||
{ | ||
"text": "GitHub Action build result: ${{ inputs.job-status }}\n${{ inputs.pull_request_url || inputs.head_commit_url }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url}} |
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
This file was deleted.
Oops, something went wrong.
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