From 9ee5e685060bbaf0718ba2ea6268207bfe259b58 Mon Sep 17 00:00:00 2001 From: Misha Kav Date: Mon, 29 Sep 2025 15:04:18 +0300 Subject: [PATCH] chore: remove unused action group and add Slack notifications for success and failure in create-tag workflow --- .github/dependabot.yml | 5 ----- .github/workflows/create-tag-on-merge.yml | 26 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7e29d1e3..a3ce7595 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,11 +4,6 @@ updates: directory: / schedule: interval: weekly - groups: - actions-minor: - update-types: - - minor - - patch - package-ecosystem: npm directory: / diff --git a/.github/workflows/create-tag-on-merge.yml b/.github/workflows/create-tag-on-merge.yml index cc7b79a8..3af2b096 100644 --- a/.github/workflows/create-tag-on-merge.yml +++ b/.github/workflows/create-tag-on-merge.yml @@ -10,6 +10,9 @@ on: - dist/** - package*.json +env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WORKFLOWS_DEPLOYMENT_WEBHOOK }} + jobs: create-tag: runs-on: ubuntu-24.04 @@ -112,3 +115,26 @@ jobs: git add package.json package-lock.json dist/ 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`