dae/.github/workflows/check-docs.yml
Kevin Yu 035332a89d
ci: docs synchronization (#103)
* Create sync-docs.yml

* feat(ci): add sync-docs.yml

* patch(ci/check-docs): add event-driven trigger

* ci: watch changes made in sync-docs.yml

* ci: re-arrange the order of steps

* ci(check-docs): disable all auto trigger

* ci(sync-docs): update author and commiter to daebot

* fix: apply subtle changes

* ci: apply subtle changes

* ci: test copy functionality

* patch: fix proper naming

* chore: remove dummy line

* ci: watch changes of example.dae

* chore(issue_template): remove unnecessary marks
2023-06-02 22:40:16 +08:00

44 lines
1015 B
YAML

name: Check document
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: [main]
types:
- opened
- synchronize
paths:
- 'README.md'
- 'docs/**'
- 'package.json'
- '.autocorrectrc'
- '.markdownlint-cli2.jsonc'
- '.github/workflows/check-docs.yml'
jobs:
check-doc:
name: Check document
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
- name: Lint Markdown files (markdownlint)
run: |
npm run markdown-lint
- name: Lint Markdown files (autocorrect)
uses: huacnlee/autocorrect-action@main
with:
args: --lint ./docs/
- name: Check broken link (including broken anchor)
run: |
npm run check-broken-link