Skip to content

[docs][ci] Updating to new lib and using webhook #72964

[docs][ci] Updating to new lib and using webhook

[docs][ci] Updating to new lib and using webhook #72964

Workflow file for this run

name: Documentation
on:
push:
branches: [ main, extensions ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
diff:
runs-on: [ubuntu-latest]
outputs:
isDoc: ${{ steps.diff.outputs.isDoc }}
isOldDoc: ${{ steps.diff.outputs.isOldDoc }}
isExamples: ${{ steps.diff.outputs.isExamples }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- name: Detect Changes
uses: './.github/actions/diffs'
id: diff
examples:
name: Notify Slack if examples directory changed
needs: diff
if: needs.diff.outputs.isExamples == 'true'
runs-on: [ubuntu-latest]
steps:
- name: Notify Slack of Examples Changes
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # pin@v1.19.0
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: 'test-notifications'
payload: |
{
"text": "whiskey tango foxtrot",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "whiskey tango foxtrot"
}
},
{
"type": "divider"
}
]
}
spelling:
name: Lint documentation
needs: diff
if: needs.diff.outputs.isDoc == 'true'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- name: Spell Check Docs
uses: crate-ci/typos@v1.16.11
with:
files: ./docs/content