Skip to content

Commit

Permalink
Send Slack notification on e2e test completion
Browse files Browse the repository at this point in the history
  • Loading branch information
nb1701 authored Aug 21, 2024
1 parent 68297ea commit cc1a1ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,12 @@ jobs:
timeout_minutes: 10
max_attempts: 3
command: /aws-nuke --config $GITHUB_WORKSPACE/cloud-deploy-infra/e2e-test/nuke.yaml --no-dry-run --force --force-sleep=3
- name: Notify Slack Complete
if: always()
uses: slackapi/slack-github-action@v1
with:
channel-id: 'C03UXPUEXU4'
slack-message: "${{ env.STATUS_ICON }} AWS e2e test: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ job.status }}>"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
STATUS_ICON: ${{fromJSON('[":no_entry:", ":white_check_mark:"]')[job.status == 'success']}}

0 comments on commit cc1a1ed

Please sign in to comment.