mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Support Enos failure notifications for other workflow triggers (#21768)
Include in the Slack message only the properties that are common to all the applicable workflow triggers.
This commit is contained in:
@@ -179,7 +179,7 @@ jobs:
|
||||
uses: hashicorp/actions-slack-status@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
failure-message: "An Enos scenario `run` failed on the branch `${{ github.event.pull_request.head.ref }}` \nPR title: `${{ github.event.pull_request.title }}` \nActor: `${{ github.event.pull_request.user.login }}`"
|
||||
failure-message: "An Enos scenario `run` failed. \nTriggering event: `${{ github.event_name }}` \nActor: `${{ github.actor }}`"
|
||||
status: ${{ steps.run.outcome }}
|
||||
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
# Send a Slack notification to #feed-vault-enos-failures if the 'run_retry' step fails.
|
||||
@@ -187,7 +187,7 @@ jobs:
|
||||
uses: hashicorp/actions-slack-status@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
failure-message: "An Enos scenario `run_retry` failed on the branch `${{ github.event.pull_request.head.ref }}` \nPR title: `${{ github.event.pull_request.title }}` \nActor: `${{ github.event.pull_request.user.login }}`"
|
||||
failure-message: "An Enos scenario `run_retry` failed. \nTriggering event: `${{ github.event_name }}` \nActor: `${{ github.actor }}`"
|
||||
status: ${{ steps.run_retry.outcome }}
|
||||
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
# Send a Slack notification to #feed-vault-enos-failures if the 'destroy' step fails.
|
||||
@@ -195,6 +195,6 @@ jobs:
|
||||
uses: hashicorp/actions-slack-status@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
failure-message: "An Enos scenario `destroy` failed on the branch `${{ github.event.pull_request.head.ref }}` \nPR title: `${{ github.event.pull_request.title }}` \nActor: `${{ github.event.pull_request.user.login }}`"
|
||||
failure-message: "An Enos scenario `destroy` failed. \nTriggering event: `${{ github.event_name }}` \nActor: `${{ github.actor }}`"
|
||||
status: ${{ steps.destroy.outcome }}
|
||||
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
|
||||
Reference in New Issue
Block a user