Skip to content

Commit

Permalink
Add simple release announcement to Slack (#3380)
Browse files Browse the repository at this point in the history
* add yaml

* Update .github/workflows/announce-release.yaml
  • Loading branch information
akeller authored Feb 23, 2024
1 parent 3c715b2 commit f209c92
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/announce-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Send message to Slack when a release is published
on:
release:
types: [published]

jobs:
slack-send:
name: Send message to Slack
runs-on: ubuntu-latest
steps:
- id: slack
uses: slackapi/[email protected]
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"release": "${{ github.event.release.tag_name }} - ${{ github.event.release.html_url }} is going live now!"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ASK_C8_DOCUMENTATION }}

0 comments on commit f209c92

Please sign in to comment.