-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Slack integration and workflow to send messages (#22)
* Add Slack integration and workflow to send messages * add slack notifications * add slack webhook url * move notify to workflow * Add registry username and password inputs to build action * maybe? * add webhook url * add payload * make tag link * fix? * explicitly add ghcr registry. * fixy fix * better * format link
- Loading branch information
Showing
6 changed files
with
94 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Send slack message | ||
description: Send a slack message | ||
inputs: | ||
message: | ||
description: "Message to send" | ||
required: true | ||
channel: | ||
description: "The channel to send the message to" | ||
required: false | ||
default: "test-github-features" | ||
webhook_url: | ||
description: "The webhook url to use" | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Send message | ||
uses: slackapi/slack-github-action@v1 | ||
with: | ||
channel-id: ${{ inputs.channel }} | ||
payload: | | ||
{ | ||
"message": "${{ inputs.message }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ inputs.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Ping slack | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ping: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/actions/slack | ||
with: | ||
message: 'Hello from GitHub Actions! :tada:' | ||
webhook_url: ${{ secrets.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