chore: Renames Github workflow for TF version updates #899
Workflow file for this run
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
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@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- 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@37ebaef184d7626c5f204ab8d3baff4262dd30f0 | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DOCS }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | |
with: | |
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@331f8f5b4215f0445d3c07b4967662a32a2d3e31 | |
with: | |
header: pr-title-slack-doc | |
append: true | |
message: "APIx bot: a message has been sent to Docs Slack channel" |