File tree Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Original file line number Diff line number Diff 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 : /
Original file line number Diff line number Diff line change 1010 - dist/**
1111 - package*.json
1212
13+ env :
14+ SLACK_WEBHOOK : ${{ secrets.SLACK_WORKFLOWS_DEPLOYMENT_WEBHOOK }}
15+
1316jobs :
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`
You can’t perform that action at this time.
0 commit comments