payload-release-event #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: on-payload-release | |
| on: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [payload-release-event] | |
| jobs: | |
| receive-repository-dispatch: | |
| runs-on: ubuntu-latest | |
| # Just log that we received the event | |
| steps: | |
| - name: Log the event payload | |
| if: ${{ github.event_name != 'workflow_dispatch' }} | |
| run: 'echo "Event received: ${{ toJson(github.event.client_payload) }}"' | |
| - name: Slack notification to sync docs | |
| uses: slackapi/[email protected] | |
| with: | |
| webhook: ${{ secrets.SLACK_WEBHOOK_WEBSITE_CHANNEL }} | |
| webhook-type: incoming-webhook | |
| payload: | | |
| { | |
| "text": "👀 New version of Payload released. Please sync the docs in the Payload CMS Admin." | |
| } |