From 217e9d78857bc1971baad2506a5cbfd628417abc Mon Sep 17 00:00:00 2001 From: Denis Gnusov Date: Mon, 3 Feb 2025 15:39:09 +0200 Subject: [PATCH] test --- .github/actions/scheduled-job-slack-notifications/action.yml | 4 ++-- .github/workflows/robot-ui-e2e-tests.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/scheduled-job-slack-notifications/action.yml b/.github/actions/scheduled-job-slack-notifications/action.yml index 57e69237fb..6a7b578ee8 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 Success - if: success() && github.event_name == 'workflow_dispatch' + if: job.status == 'success' && 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 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/slack-github-action@v1.26.0 env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} diff --git a/.github/workflows/robot-ui-e2e-tests.yml b/.github/workflows/robot-ui-e2e-tests.yml index e20dfd50f0..9c13039a49 100644 --- a/.github/workflows/robot-ui-e2e-tests.yml +++ b/.github/workflows/robot-ui-e2e-tests.yml @@ -38,13 +38,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Dummy Failed step - continue-on-error: true run: exit 1 - name: Slack Notification for scheduled job uses: ./.github/actions/scheduled-job-slack-notifications env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} SLACK_CHANNEL_ID: C089JB7DC7R + if: always() dummy-failed-job-with-retry: if: > github.event_name == 'workflow_dispatch' &&