From b5fbeb9f15ab28b76cff043ee2b98b20a98a0684 Mon Sep 17 00:00:00 2001 From: Denis Gnusov Date: Mon, 3 Feb 2025 14:56:44 +0200 Subject: [PATCH] test --- .github/actions/scheduled-job-slack-notifications/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/scheduled-job-slack-notifications/action.yml b/.github/actions/scheduled-job-slack-notifications/action.yml index c1a354b98a..d4c7afb496 100644 --- a/.github/actions/scheduled-job-slack-notifications/action.yml +++ b/.github/actions/scheduled-job-slack-notifications/action.yml @@ -5,7 +5,7 @@ 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/slack-github-action@v1.26.0 env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} @@ -13,7 +13,7 @@ runs: 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/slack-github-action@v1.26.0 env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }}