We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb9d397 commit 7c1a513Copy full SHA for 7c1a513
.github/workflows/build-ami.yml
@@ -61,4 +61,14 @@ jobs:
61
id: build
62
run: |
63
packer build -var "optimum_neuron_tag=${{ steps.determine-tag.outputs.TAG }}" hcl2-files
64
-
+
65
+ - name: Slack Notification on Failure
66
+ if: ${{ failure() && github.event_name == 'schedule' }}
67
+ uses: rtCamp/action-slack-notify@v2
68
+ env:
69
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
70
+ SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
71
+ SLACK_USERNAME: 'GitHub Action Optimum Neuron AMI'
72
+ SLACK_ICON_EMOJI: ':bell:'
73
+ SLACK_COLOR: 'danger'
74
+ SLACK_TITLE: 'Build AWS Neuron AMI Failed'
0 commit comments