Skip to content

Commit

Permalink
[no-relnote] Report GHA Staging_e2e status
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
  • Loading branch information
ArangoGutierrez committed Aug 19, 2024
1 parent e7a260b commit 347ad39
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/staging_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,26 @@ jobs:
name: e2e-test-logs
path: ./e2e_logs/
retention-days: 15

- name: Check workflow status
run: |
if [ "${{ job.status }}" = "success" ]; then
STATUS_MESSAGE=":green-check-mark: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}*n has completed successfully."
else
STATUS_MESSAGE=":red_target: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed."
fi
echo "STATUS_MESSAGE=$STATUS_MESSAGE" >> $GITHUB_ENV
- name: Send Slack alert notification
id: slack
if: github.event_name == 'push'
uses: slackapi/slack-github-action@v1.26.0
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: |
${{ env.STATUS_MESSAGE }}
Details: ${{ env.SUMMARY_URL }}

0 comments on commit 347ad39

Please # to comment.