Skip to content

Commit

Permalink
Refactor Slack notification step in e2e-test workflow for better stru…
Browse files Browse the repository at this point in the history
…cture.
  • Loading branch information
rohitpaulk committed Oct 17, 2024
1 parent 91825d2 commit aa113dc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,19 @@ jobs:
echo "${{ matrix.file.sha }} download_$i/${{ matrix.file.name }}" | sha256sum --check
done
- name: Send GitHub Action trigger data to Slack workflow
if: failure()
id: slack
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

heartbeat:
needs: download
runs-on: ubuntu-latest
steps:
- name: Heartbeat
run: curl https://uptime.betterstack.com/api/v1/heartbeat/2M55J8QACm9v9KP9BQzwppwi

notify_slack:
needs: [download]
runs-on: ubuntu-latest
if: failure()
steps:
- name: Send GitHub Action trigger data to Slack workflow
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit aa113dc

Please sign in to comment.