From 139890b8b8351ede7bed9ce4268ff3836e3c07db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Wed, 19 Feb 2025 16:06:58 +0100 Subject: [PATCH] feat(cd): slack notification on release (#14) --- .github/workflows/notification.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/notification.yaml diff --git a/.github/workflows/notification.yaml b/.github/workflows/notification.yaml new file mode 100644 index 0000000..94ef458 --- /dev/null +++ b/.github/workflows/notification.yaml @@ -0,0 +1,21 @@ +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + notify: + name: Notify + runs-on: ubuntu-latest + steps: + - name: Send release notification + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: webhook-trigger + payload: | + repo: "${{ github.repository }}" + url: "${{ github.event.release.html_url }}" + version: "${{ github.event.release.tag_name }}"