Skip to content

Commit 8c5c7fb

Browse files
committed
slack notify
1 parent 70a204b commit 8c5c7fb

15 files changed

+232
-1
lines changed

.github/workflows/build-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Docker Build
2+
run-name: Docker Build (${{ github.event.inputs.target }})
23

34
on:
45
workflow_dispatch:

.github/workflows/example_cards.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: cards
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_curtain.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: curtain
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_domino.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: domino
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_drape.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: drape
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_friction.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: friction
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_hang.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: hang
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_needle.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: needle
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_stack.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: stack
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_trampoline.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: trampoline
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_trapped.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: trapped
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_twist.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: twist
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/slack-test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Slack Notification
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
SLACK_USERNAME: DeployBot
8+
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
9+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
10+
11+
jobs:
12+
slackNotification:
13+
name: Slack-Notification
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Slack Notification Success
21+
uses: rtCamp/action-slack-notify@v2
22+
if: ${{ success() }}
23+
env:
24+
SLACK_TITLE: Deploy / Success
25+
SLACK_COLOR: good
26+
SLACK_MESSAGE: All tests passed.
27+
28+
- name: Slack Notification Failure
29+
uses: rtCamp/action-slack-notify@v2
30+
if: ${{ failure() }}
31+
env:
32+
SLACK_TITLE: Deploy / Failure
33+
SLACK_COLOR: danger
34+
SLACK_MESSAGE: Tests failed.

.github/workflows/template/example_template.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
EXAMPLE_NAME: ****
1819
HELPER_PATH: .github/workflows/vast/helper.sh
1920

@@ -66,3 +67,16 @@ jobs:
6667
- name: shutdown
6768
if: always()
6869
run: bash $HELPER_PATH delete
70+
71+
notify_failure:
72+
runs-on: ${{ github.event.inputs.runner }}
73+
needs: run
74+
if: ${{ failure() }}
75+
steps:
76+
77+
- name: Slack Notification Failure
78+
uses: rtCamp/action-slack-notify@v2
79+
env:
80+
SLACK_TITLE: Deploy / Failure
81+
SLACK_COLOR: danger
82+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/vast-all.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1718
HELPER_PATH: .github/workflows/vast/helper.sh
1819

1920
jobs:
@@ -112,4 +113,31 @@ jobs:
112113

113114
- name: shutdown
114115
if: always()
115-
run: bash $HELPER_PATH delete
116+
run: bash $HELPER_PATH delete
117+
118+
notify_success:
119+
runs-on: ${{ github.event.inputs.runner }}
120+
needs: [part_1, part_2, part_3, part_4]
121+
if: ${{ success() }}
122+
steps:
123+
124+
- name: Slack Notification Success
125+
uses: rtCamp/action-slack-notify@v2
126+
if: ${{ success() }}
127+
env:
128+
SLACK_TITLE: Deploy / Success
129+
SLACK_COLOR: good
130+
SLACK_MESSAGE: All tests passed.
131+
132+
notify_failure:
133+
runs-on: ${{ github.event.inputs.runner }}
134+
needs: [part_1, part_2, part_3, part_4]
135+
if: ${{ failure() }}
136+
steps:
137+
138+
- name: Slack Notification Failure
139+
uses: rtCamp/action-slack-notify@v2
140+
env:
141+
SLACK_TITLE: Deploy / Failure
142+
SLACK_COLOR: danger
143+
SLACK_MESSAGE: One or more tests failed.

0 commit comments

Comments
 (0)