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 0ebba13 commit 217e9d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/robot-ui-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down

0 comments on commit 217e9d7

Please sign in to comment.