From 5c989ebf6fc7f12a2d4ff488fc47aff548ebab45 Mon Sep 17 00:00:00 2001 From: Hamza Mahmood Date: Tue, 2 Apr 2024 15:08:55 +0500 Subject: [PATCH] ci: merge release notification action (#55) --- .github/workflows/release-notification.yml | 19 ------------------- .github/workflows/release.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/release-notification.yml diff --git a/.github/workflows/release-notification.yml b/.github/workflows/release-notification.yml deleted file mode 100644 index 48301b0..0000000 --- a/.github/workflows/release-notification.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Release Notification - -on: - release: - types: [released] - -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: "core-interfaces-java release has been triggered!" - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb8d5c6..f82b9a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,3 +67,12 @@ jobs: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release Version ${{ github.event.inputs.Version }} body: ${{ steps.tag_version.outputs.changelog }} + + - name: Send slack notification + id: slack + uses: slackapi/slack-github-action@v1.25.0 + with: + channel-id: 'C012YFE3D6D' + slack-message: "core-interfaces-java release has been triggered!" + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file