Skip to content

Commit 54f3577

Browse files
authored
ci: post release announcement to slack channel (#2877)
1 parent c24faff commit 54f3577

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.changeset/fresh-frogs-like.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@slack/bolt": patch
3+
---
4+
5+
fix: correct InvalidCustomPropertyError code and MemoryStore promise handling

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,31 @@ jobs:
6666
run: npm ci --verbose
6767

6868
- name: Publish to npm and create GitHub releases
69+
id: changesets
6970
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
7071
with:
7172
createGithubReleases: true
7273
publish: npm run changeset -- publish
7374
env:
7475
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
77+
- name: Get publication details
78+
if: steps.changesets.outputs.published == 'true'
79+
id: release
80+
run: |
81+
echo "url=$(gh release view --json url -q .url)" >> "$GITHUB_OUTPUT"
82+
echo "message=$(echo "$PUBLISHED_PACKAGES" | jq -r '.[] | "\(.name)@\(.version)"' | paste -sd ', ' -)" >> "$GITHUB_OUTPUT"
83+
env:
84+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
86+
87+
- name: Notify Slack
88+
if: steps.changesets.outputs.published == 'true'
89+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
90+
with:
91+
webhook: ${{ secrets.SLACK_RELEASE_ANNOUNCEMENTS_WEBHOOK_URL }}
92+
webhook-type: webhook-trigger
93+
payload: |
94+
action_url: "${{ steps.release.outputs.url }}"
95+
message: "${{ steps.release.outputs.message }}"
96+
repository: "${{ github.repository }}"

0 commit comments

Comments
 (0)