Create Tech Talk “2024-09-25-gsa-it-tech-training” #238
This file contains 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
# Send a Slack notification when CMS content is ready for publication. | |
name: CMS notifier | |
on: | |
pull_request_target: | |
types: [labeled] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify Slack if a PR is ready to publish | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'netlify-cms/pending_publish') }} | |
id: slack | |
uses: slackapi/slack-github-action@v1.18.0 | |
with: | |
payload: | | |
{ | |
"message": "Content is ready for publication, please review and merge: ${{ github.event.pull_request.html_url }}" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_MESSAGE_URL }} |