Skip to content

Commit c95e62e

Browse files
committed
ci: add workflow dispatch to test payload release notification
1 parent a8bd9dd commit c95e62e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/on-payload-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: on-payload-release
22

33
on:
4+
workflow_dispatch:
45
repository_dispatch:
56
types: [payload-release-event]
67

@@ -11,4 +12,15 @@ jobs:
1112
# Just log that we received the event
1213
steps:
1314
- name: Log the event payload
15+
if: ${{ github.event_name != 'workflow_dispatch' }}
1416
run: 'echo "Event received: ${{ toJson(github.event.client_payload) }}"'
17+
18+
- name: Slack notification to sync docs
19+
uses: slackapi/[email protected]
20+
with:
21+
webhook: ${{ secrets.SLACK_WEBHOOK_WEBSITE_CHANNEL }}
22+
webhook-type: incoming-webhook
23+
payload: |
24+
{
25+
"text": "👀 New version of Payload released. Please sync the docs in the Payload CMS Admin."
26+
}

0 commit comments

Comments
 (0)