From c0c6e2c1156b4958c48c4e6da9708fcbeec013b8 Mon Sep 17 00:00:00 2001 From: Michael Rolli Date: Mon, 13 May 2024 13:06:11 +0200 Subject: [PATCH] build: add release announcement workflow --- .github/workflows/release_announcement.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release_announcement.yml diff --git a/.github/workflows/release_announcement.yml b/.github/workflows/release_announcement.yml new file mode 100644 index 0000000..a530771 --- /dev/null +++ b/.github/workflows/release_announcement.yml @@ -0,0 +1,25 @@ +--- +name: Release announcement +on: + release: + types: [published] + +jobs: + notify: + name: Notify new release + runs-on: ubuntu-latest + if: github.event.release.name != '' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Notify dedicated teams channel + uses: simbo/msteams-message-card-action@v1.4.3 + with: + webhook: ${{ secrets.TEAMS_SYS_WEBHOOK_ANSIBLE_TALK_URI }} + title: "New Release for ${{ github.repository }}" + message: "Release ${{ github.event.release.name }} for repository ${{ github.repository }} has just been published!" + color: "ff6e00" + buttons: | + Open release notes at GitHub https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.name }}