Skip to content

Commit

Permalink
Merge pull request #3 from ho-nl/feature/test-message
Browse files Browse the repository at this point in the history
feat: add new workflow to test slack messages
  • Loading branch information
wimvdputten authored Jul 15, 2024
2 parents 12968bd + 7bf805b commit 31fb3a5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test-slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 31fb3a5

Please sign in to comment.