1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Files
docs/.github/workflows/notify-release-notes-pr.yml
dependabot[bot] e6f4ec9944 build(deps): bump slackapi/slack-github-action from 3.0.1 to 3.0.3
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Changelog](https://github.com/slackapi/slack-github-action/blob/main/CHANGELOG.md)
- [Commits](af78098f53...45a88b9581)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-version: 3.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-08 01:43:17 +00:00

46 lines
1.6 KiB
YAML

name: Notify Slack on Desktop Release Notes PR
on:
workflow_run:
workflows: ["Release Notes PR Trigger"]
types: [completed]
jobs:
notify:
runs-on: ubuntu-24.04
if: github.repository_owner == 'docker' && github.event.workflow_run.conclusion == 'success'
steps:
- name: Download PR details
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: pr-details
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Read PR details
id: pr
run: |
echo "url=$(jq -r .url pr-details.json)" >> "$GITHUB_OUTPUT"
echo "title=$(jq -r .title pr-details.json)" >> "$GITHUB_OUTPUT"
echo "author=$(jq -r .author pr-details.json)" >> "$GITHUB_OUTPUT"
- name: Notify Slack
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "${{ secrets.SLACK_RELEASE_CHANNEL_ID }}",
"text": "Desktop release notes",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":memo: *Desktop release notes*:\n<${{ steps.pr.outputs.url }}|${{ steps.pr.outputs.title }}> by <https://github.com/${{ steps.pr.outputs.author }}|${{ steps.pr.outputs.author }}>"
}
}
]
}