-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladyslav Hlushchenko
committed
Apr 8, 2024
1 parent
560bba4
commit 9bdb149
Showing
2 changed files
with
27 additions
and
22 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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
name: 'Slack Notification' | ||
inputs: | ||
slack_header: # id of input | ||
required: false | ||
default: '' | ||
slack_context: | ||
required: false | ||
default: '' | ||
slack_message_body: | ||
default: '' | ||
required: false | ||
slack_id: | ||
required: true | ||
slack_token: | ||
required: true | ||
on: | ||
workflow_call: | ||
inputs: | ||
slack_header: # id of input | ||
required: false | ||
default: '' | ||
slack_context: | ||
required: false | ||
default: '' | ||
slack_message_body: | ||
default: '' | ||
required: false | ||
slack_id: | ||
required: true | ||
slack_token: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
jobs: | ||
Slack_notification: | ||
runs-on: ubuntu-latest | ||
steps: slack_notification | ||
- name: Prepare Slack Message | ||
if: ${{ steps.publish.outcome == 'success' && !contains(matrix.package, 'Meta') }} | ||
id: slack-prepare | ||
|
@@ -54,6 +56,6 @@ runs: | |
uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ env.SLACK_CHANNEL }} | ||
payload: ${{ env. SLACK_PAYLOAD }} | ||
payload: ${{ env.SLACK_PAYLOAD }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ inputs.slack_token }} |
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