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,22 +179,22 @@ jobs: | |||||||
|         uses: hashicorp/actions-slack-status@v1 |         uses: hashicorp/actions-slack-status@v1 | ||||||
|         if: ${{ always() }} |         if: ${{ always() }} | ||||||
|         with: |         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}} |           status: ${{ steps.run.outcome }} | ||||||
|           slack-webhook-url: ${{secrets.SLACK_WEBHOOK_URL}} |           slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||||||
|       # Send a Slack notification to #feed-vault-enos-failures if the 'run_retry' step fails. |       # Send a Slack notification to #feed-vault-enos-failures if the 'run_retry' step fails. | ||||||
|       - name: Send Slack notification on Enos run_retry failure |       - name: Send Slack notification on Enos run_retry failure | ||||||
|         uses: hashicorp/actions-slack-status@v1 |         uses: hashicorp/actions-slack-status@v1 | ||||||
|         if: ${{ always() }} |         if: ${{ always() }} | ||||||
|         with: |         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}} |           status: ${{ steps.run_retry.outcome }} | ||||||
|           slack-webhook-url: ${{secrets.SLACK_WEBHOOK_URL}} |           slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||||||
|       # Send a Slack notification to #feed-vault-enos-failures if the 'destroy' step fails. |       # Send a Slack notification to #feed-vault-enos-failures if the 'destroy' step fails. | ||||||
|       - name: Send Slack notification on Enos destroy failure |       - name: Send Slack notification on Enos destroy failure | ||||||
|         uses: hashicorp/actions-slack-status@v1 |         uses: hashicorp/actions-slack-status@v1 | ||||||
|         if: ${{ always() }} |         if: ${{ always() }} | ||||||
|         with: |         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}} |           status: ${{ steps.destroy.outcome }} | ||||||
|           slack-webhook-url: ${{secrets.SLACK_WEBHOOK_URL}} |           slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Rebecca Willett
					Rebecca Willett