File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 20
20
GIT_SHA=$(git rev-parse HEAD)
21
21
packer build -var "git-head-version=${GIT_SHA}" -var-file="development-arm.vars.pkr.hcl" -var-file="common.vars.pkr.hcl" amazon-arm64.pkr.hcl
22
22
23
- - name : Slack Notification
23
+ - name : Slack Notification on Failure
24
24
if : ${{ failure() }}
25
25
uses : rtCamp/action-slack-notify@v2
26
26
env :
29
29
SLACK_COLOR : ' danger'
30
30
SLACK_MESSAGE : ' Building Postgres AMI failed'
31
31
SLACK_FOOTER : ' '
32
+
33
+ - name : Slack Notification on Cancel
34
+ if : ${{ cancelled() }}
35
+ uses : rtCamp/action-slack-notify@v2
36
+ env :
37
+ SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
38
+ SLACK_USERNAME : ' gha-failures-notifier'
39
+ SLACK_COLOR : ' danger'
40
+ SLACK_MESSAGE : ' Postgres AMI build cancelled. Reminder to clean up any Packer instances that may have been left running. @group-infra'
41
+ SLACK_FOOTER : ' '
You can’t perform that action at this time.
0 commit comments