Skip to content

Commit

Permalink
feat: update needs on notify-end
Browse files Browse the repository at this point in the history
  • Loading branch information
wimvdputten committed Jul 15, 2024
1 parent 50a6c4b commit c4e8c28
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, release ]
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.release.result }}
channel: 12gobiking-test
message: Test
notifyOnlyOnFailure: false

0 comments on commit c4e8c28

Please sign in to comment.