Skip to content

Commit

Permalink
feat(CICD): #28673 Adding a slack notification to the dotCLI release …
Browse files Browse the repository at this point in the history
…workflow. (#28750)

### Proposed Changes
* Added a Slack notification to announce a new dotCLI release at the end
of dotCLI release workflow.

### Fixes
#28673

Co-authored-by: Daniel Colina <[email protected]>
  • Loading branch information
dcolina and dcolina authored Jun 4, 2024
1 parent 7bc05d3 commit 59540fa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cli-release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
description: 'Release version'
default: '1.0.0-SNAPSHOT'
required: false
notify_slack:
description: 'Notify Slack'
default: 'true'
required: false

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down Expand Up @@ -459,6 +463,19 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
npm publish --access public --tag ${NPM_PACKAGE_VERSION_TAG}
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.RELEASE_SLACK_WEBHOOK }}
SLACK_TITLE: "Important news!"
SLACK_MESSAGE: "<!channel> This automated script is excited to announce the release of a new version of *dotCLI* `${{ needs.precheck.outputs.RELEASE_VERSION }}` :package: is available on the `NPM` registry!"
SLACK_USERNAME: dotBot
SLACK_MSG_AUTHOR: " "
MSG_MINIMAL: true
SLACK_FOOTER: ""
SLACK_ICON: https://avatars.slack-edge.com/temp/2021-12-08/2830145934625_e4e464d502865ff576e4.png
if: success() && github.event.inputs.notify_slack == 'true'

clean-up:
name: "Clean Up"
Expand Down

0 comments on commit 59540fa

Please sign in to comment.