diff --git a/.github/workflows/announce-release.yaml b/.github/workflows/announce-release.yaml new file mode 100644 index 00000000000..63df7387118 --- /dev/null +++ b/.github/workflows/announce-release.yaml @@ -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/slack-github-action@v1.25.0 + 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 }}