From c4e8c28a11247277011b6322a3076b8665c4653a Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 15 Jul 2024 16:37:45 +0200 Subject: [PATCH] feat: update needs on notify-end --- .github/workflows/test-slack.yml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/test-slack.yml diff --git a/.github/workflows/test-slack.yml b/.github/workflows/test-slack.yml new file mode 100644 index 0000000..cc4ebff --- /dev/null +++ b/.github/workflows/test-slack.yml @@ -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