-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50a6c4b
commit c4e8c28
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |