[graphql/rpc] Auto create markdown doc from examples (#14492) #1
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: 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 }} | |
steps: | |
- uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # pin@v3 | |
- name: Detect Changes | |
uses: './.github/actions/diffs' | |
id: diff | |
spelling: | |
name: Lint documentation | |
needs: diff | |
if: needs.diff.outputs.isDoc == 'true' | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # pin@v3 | |
- name: Spell Check Docs | |
uses: crate-ci/typos@v1.16.11 | |
with: | |
files: ./doc ./*.md |