From aff6eccda0e434c2bcf8f1f49f9a6b36e873c516 Mon Sep 17 00:00:00 2001 From: Misha Kav Date: Wed, 26 Nov 2025 14:43:46 +0200 Subject: [PATCH] refactor: use shared slack-notification action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/create-tag-on-merge.yml | 32 +++++++---------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/create-tag-on-merge.yml b/.github/workflows/create-tag-on-merge.yml index c0fccffd..bfc0793d 100644 --- a/.github/workflows/create-tag-on-merge.yml +++ b/.github/workflows/create-tag-on-merge.yml @@ -118,25 +118,13 @@ jobs: git commit -m "Update v2-lite to $NEW_TAG" git push origin v2-lite - - name: Success Slack Notification - if: steps.should-deploy.outputs.result == 'true' && success() - uses: rtCamp/action-slack-notify@v2 - env: - MSG_MINIMAL: true - SLACK_WEBHOOK: ${{ env.SLACK_WEBHOOK }} - SLACK_TITLE: ${{ github.repository }} - SLACK_FOOTER: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow run> | <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ env.NEW_TAG }}|${{ env.NEW_TAG }}> - SLACK_MESSAGE: | - Released `${{ env.NEW_TAG }}` to `gitstream-github-action` - ${{ steps.should-deploy.outputs.release-notes }} - - - name: Failure Slack Notification - if: steps.should-deploy.outputs.result == 'true' && failure() - uses: rtCamp/action-slack-notify@v2 - env: - MSG_MINIMAL: true - SLACK_WEBHOOK: ${{ env.SLACK_WEBHOOK }} - SLACK_TITLE: ${{ github.repository }} - SLACK_COLOR: ${{ job.status }} - SLACK_FOOTER: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow run> - SLACK_MESSAGE: Failed to release `${{ env.NEW_TAG }}` to `gitstream-github-action` + - name: Slack Notification + if: steps.should-deploy.outputs.result == 'true' && always() + uses: linear-b/shared-workflows/.github/actions/slack-notification@develop + with: + status: ${{ job.status }} + webhook_url: ${{ env.SLACK_WEBHOOK }} + footer_links: <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ env.NEW_TAG }}|${{ env.NEW_TAG }}> + message: | + ${{ job.status == 'success' && 'Released' || 'Failed to release' }} `${{ env.NEW_TAG }}` to `gitstream-github-action` + ${{ job.status == 'success' && steps.should-deploy.outputs.release-notes || '' }}