Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-gnusov committed Feb 3, 2025
1 parent f401e07 commit b5fbeb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/scheduled-job-slack-notifications/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ runs:
using: "composite"
steps:
- name: Notify Slack on Scheduled Job Failure
if: failure() && github.event_name == 'schedule'
if: failure() && 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 failed. Manual intervention is required! \n*Details*: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Notify Slack on Scheduled Job Success
if: failure() == false && github.event_name == 'schedule'
if: failure() == false && github.event_name == 'workflow_dispatch'
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }}
Expand Down

0 comments on commit b5fbeb9

Please sign in to comment.