Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Eden Zimbelman <[email protected]>
23 lines
755 B
YAML
23 lines
755 B
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Post release announcements
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
jobs:
|
|
run:
|
|
name: Share recent changes with a channel
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Draft with these release notes details
|
|
uses: slackapi/[email protected]
|
|
with:
|
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
webhook-type: webhook-trigger
|
|
payload: |
|
|
"draft_channel": "${{ secrets.SLACK_CHANNEL_ID }}",
|
|
"release_notes": ${{ toJSON(github.event.release.body) }},
|
|
"release_repository": "${{ github.repository }}",
|
|
"release_version": "${{ github.event.release.tag_name }}",
|