-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 978 Bytes
/
test-slack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test message
on:
workflow_dispatch:
concurrency:
group: deploy
cancel-in-progress: true
jobs:
notify-start:
name: Notify release start
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-start.yml@main
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
channel: 12gobiking-test
message: Test
notifyOnlyOnFailure: false
release:
runs-on: ubuntu-latest
name: release
steps:
- name: sleep
run: sleep 10s
shell: bash
notify-end:
if: always()
name: Notify release end
needs: [ notify-start, activate-pm2 ]
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-end.yml@main
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
time: ${{ needs.notify-start.outputs.time }}
result: ${{ needs.activate-pm2.result }}
channel: 12gobiking-test
message: Test
notifyOnlyOnFailure: false