From 6326ddc65d007a00440ad3f8238c63309740f81a Mon Sep 17 00:00:00 2001 From: Usama Bin Tariq <31243495+usamabintariq@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:47:29 +0500 Subject: [PATCH 1/2] ci: add release notification --- .github/release-notification.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/release-notification.yml diff --git a/.github/release-notification.yml b/.github/release-notification.yml new file mode 100644 index 00000000..ff1a757c --- /dev/null +++ b/.github/release-notification.yml @@ -0,0 +1,19 @@ +name: Release Notification + +on: + release: + types: [published] + +jobs: + send-slack-notification: + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - name: Send slack notification + id: slack + uses: slackapi/slack-github-action@v1.25.0 + with: + channel-id: 'C012YFE3D6D' + slack-message: "apimatic-js-runtime release has been triggered!" + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file From 9083a7e80723f7e48fee83b08b86ca4b31cdfa8a Mon Sep 17 00:00:00 2001 From: Usama Bin Tariq <31243495+usamabintariq@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:43:57 +0500 Subject: [PATCH 2/2] Update release-notification.yml --- .github/release-notification.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/release-notification.yml b/.github/release-notification.yml index ff1a757c..a197d02e 100644 --- a/.github/release-notification.yml +++ b/.github/release-notification.yml @@ -2,7 +2,7 @@ name: Release Notification on: release: - types: [published] + types: [released] jobs: send-slack-notification: @@ -16,4 +16,4 @@ jobs: channel-id: 'C012YFE3D6D' slack-message: "apimatic-js-runtime release has been triggered!" env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}