Skip to content

Commit 650b85f

Browse files
authored
chore: remove unused action group and add Slack notifications for success and failure in create-tag workflow (#404)
1 parent 1234275 commit 650b85f

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ updates:
44
directory: /
55
schedule:
66
interval: weekly
7-
groups:
8-
actions-minor:
9-
update-types:
10-
- minor
11-
- patch
127

138
- package-ecosystem: npm
149
directory: /

.github/workflows/create-tag-on-merge.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- dist/**
1111
- package*.json
1212

13+
env:
14+
SLACK_WEBHOOK: ${{ secrets.SLACK_WORKFLOWS_DEPLOYMENT_WEBHOOK }}
15+
1316
jobs:
1417
create-tag:
1518
runs-on: ubuntu-24.04
@@ -112,3 +115,26 @@ jobs:
112115
git add package.json package-lock.json dist/
113116
git commit -m "Update v2-lite to $NEW_TAG"
114117
git push origin v2-lite
118+
119+
- name: Success Slack Notification
120+
if: steps.should-deploy.outputs.result == 'true' && success()
121+
uses: rtCamp/action-slack-notify@v2
122+
env:
123+
MSG_MINIMAL: true
124+
SLACK_WEBHOOK: ${{ env.SLACK_WEBHOOK }}
125+
SLACK_TITLE: ${{ github.repository }}
126+
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 }}>
127+
SLACK_MESSAGE: |
128+
Released `${{ env.NEW_TAG }}` to `gitstream-github-action`
129+
${{ steps.should-deploy.outputs.release-notes }}
130+
131+
- name: Failure Slack Notification
132+
if: steps.should-deploy.outputs.result == 'true' && failure()
133+
uses: rtCamp/action-slack-notify@v2
134+
env:
135+
MSG_MINIMAL: true
136+
SLACK_WEBHOOK: ${{ env.SLACK_WEBHOOK }}
137+
SLACK_TITLE: ${{ github.repository }}
138+
SLACK_COLOR: ${{ job.status }}
139+
SLACK_FOOTER: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow run>
140+
SLACK_MESSAGE: Failed to release `${{ env.NEW_TAG }}` to `gitstream-github-action`

0 commit comments

Comments
 (0)