-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
37 additions
and
25 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 |
---|---|---|
|
@@ -47,28 +47,5 @@ jobs: | |
|
||
notify: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send notification on Slack | ||
uses: rtCamp/[email protected] | ||
if: ${{ success() }} | ||
env: | ||
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }} | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }} | ||
SLACK_MESSAGE: ':white_check_mark: Build successful! :rocket:' | ||
SLACK_TITLE: Kmplate-lib build status | ||
SLACK_USERNAME: Github Actions CI | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Send notification on Slack | ||
uses: rtCamp/[email protected] | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }} | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }} | ||
SLACK_MESSAGE: ':x: Build failed! :pensive:' | ||
SLACK_TITLE: Kmplate-lib build status | ||
SLACK_USERNAME: Github Actions CI | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
uses: ./.github/workflows/notify.yml | ||
secrets: inherit |
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,35 @@ | ||
name: Notify build status on Slack | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
SLACK_WEBHOOK_URL: | ||
required: true | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send notification on Slack | ||
uses: rtCamp/[email protected] | ||
if: ${{ success() }} | ||
env: | ||
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }} | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }} | ||
SLACK_MESSAGE: ':white_check_mark: Build successful! :rocket:' | ||
SLACK_TITLE: Kmplate-lib build status | ||
SLACK_USERNAME: Github Actions CI | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Send notification on Slack | ||
uses: rtCamp/[email protected] | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }} | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }} | ||
SLACK_MESSAGE: ':x: Build failed! :pensive:' | ||
SLACK_TITLE: Kmplate-lib build status | ||
SLACK_USERNAME: Github Actions CI | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} |