Do not depend on old accumulator objects #91777
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: 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@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # [email protected] | |
| with: | |
| method: chat.postMessage | |
| token: ${{ secrets.SLACK_BOT_TOKEN }} | |
| payload: | | |
| channel: "docs-automations" | |
| text: | | |
| An open PR modifies files in the `examples/` directory. | |
| Please review it: <https://github.com/${{ github.repository }}/pull/${{ github.event.number }}|PR${{ github.event.number }}> | |
| 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/[email protected] | |
| with: | |
| files: ./docs/content |