更新云服务SDK文档 #591
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: Check Docs | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'docs/**' | |
| - 'i18n/en/docusaurus-plugin-content-docs/current/**' | |
| - '.github/workflows/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Install markdownlint | |
| run: sudo npm install -g markdownlint-cli | |
| - name: Run Markdown Lint | |
| run: markdownlint -c .github/workflows/markdown_config.json ./ | |
| - name: Check Typos | |
| uses: crate-ci/[email protected] | |
| with: | |
| files: ./**/*.md | |
| config: .github/workflows/typos.toml | |
| - name: Check Typos for i18n | |
| uses: crate-ci/[email protected] | |
| with: | |
| files: ./i18n/en/docusaurus-plugin-content-docs/current | |
| config: .github/workflows/typos.toml | |
| - name: Check with AutoCorrect | |
| uses: huacnlee/autocorrect-action@v2 | |
| with: | |
| args: --lint ./**/*.md | |
| - name: Report ReviewDog | |
| if: always() | |
| uses: tomchon/autocorrect-action@fix/review-dog | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| reviewdog: true | |
| args: ./docs/ | |
| - name: Check Markdown Lint Cli2 | |
| uses: DavidAnson/markdownlint-cli2-action@v20 | |
| with: | |
| config: '.github/workflows/.markdownlint-cli2.jsonc' | |
| globs: '**/*.md' | |
| build: | |
| needs: | |
| - check | |
| uses: ./.github/workflows/build_docs.yaml |