Skip to content

Commit beeffc6

Browse files
committed
Add slack notification
1 parent 9939c01 commit beeffc6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,18 @@ jobs:
3939
poetry run sam package --s3-bucket nr-serverless-applications --output-template-file packaged.yaml
4040
poetry run sam publish --region us-east-1 --template packaged.yaml
4141
42-
42+
notify:
43+
runs-on: ubuntu-latest
44+
needs: release
45+
steps:
46+
- name: Send release details to Slack workflow
47+
id: slack
48+
uses: slackapi/slack-github-action@v1.23.0
49+
with:
50+
payload: |
51+
{
52+
"releaseNotes": "${{ github.event.release.body }}",
53+
"releaseName": "${{ github.event.release.name }}"
54+
}
55+
env:
56+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)