Skip to content

Commit

Permalink
feature (git): add to notify slack every new release
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinezAvellan committed Nov 28, 2024
1 parent aecc4a7 commit 37b6380
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ jobs:
username: "Release Changelog"
content: "||@everyone||"
footer_title: "Changelog"
footer_timestamp: true
footer_timestamp: true

- name: Notify Slack of New Release
uses: rtCamp/action-slack-notify@v2
if: '!github.event.release.prerelease'
env:
SLACK_CHANNEL: "#lerian-product-releases" # Channel of Slack
SLACK_COLOR: "#36a64f"
SLACK_ICON: ":rocket:"
SLACK_MESSAGE: "🎉 *Nova Release Publicada!* Versão: ${GITHUB_REF#refs/tags/} \n\n<https://github.com/${{ github.repository }}/releases/tag/${GITHUB_REF#refs/tags/}|Clique aqui para detalhes.>"
SLACK_TITLE: "Novo Release"
SLACK_USERNAME: "Release Bot"
SLACK_WEBHOOK: ${{ secrets.RELEASE_WEBHOOK_NOTIFICATION_URL }} # Webhook Release Notification

0 comments on commit 37b6380

Please sign in to comment.