Skip to content

doc: Updates Terraform Compatibility Matrix documentation #2532

doc: Updates Terraform Compatibility Matrix documentation

doc: Updates Terraform Compatibility Matrix documentation #2532

name: Notify Docs team
on:
pull_request:
types: [opened, ready_for_review]
jobs:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
outputs:
files: ${{ steps.changes.outputs.files }}
permissions:
pull-requests: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: changes
with:
filters: |
files:
- '.changelog/**'
- 'docs/**'
slack-notification:
needs: check
if: ${{ needs.check.outputs.files == 'true' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write # Needed by sticky-pull-request-comment
steps:
- uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_DOCS }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "hey ${{ secrets.SLACK_DOCS_TAG }}, this is APIx bot, can you please review <${{ github.event.pull_request.html_url }}|PR ${{ github.event.pull_request.number }}>? thanks a lot!"
}
}
]
}
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405
with:
header: pr-title-slack-doc
append: true
message: "APIx bot: a message has been sent to Docs Slack channel"