-
Notifications
You must be signed in to change notification settings - Fork 129
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
1 parent
0ebba13
commit 217e9d7
Showing
2 changed files
with
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ runs: | |
using: "composite" | ||
steps: | ||
- name: Notify Slack on Scheduled Job Success | ||
if: success() && github.event_name == 'workflow_dispatch' | ||
if: job.status == 'success' && github.event_name == 'workflow_dispatch' | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} | ||
with: | ||
channel-id: ${{ env.SLACK_CHANNEL_ID }} | ||
slack-message: "✅Scheduled job *${{github.job}}* on the *${{ github.repository }}* repository succeeded." | ||
- name: Notify Slack on Scheduled Job Failure | ||
if: failure() && github.event_name == 'workflow_dispatch' | ||
if: job.status == 'failure' && github.event_name == 'workflow_dispatch' | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_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