Skip to content

To handle issue after big delete, since region merge feature is already released, update on it #26387

To handle issue after big delete, since region merge feature is already released, update on it

To handle issue after big delete, since region merge feature is already released, update on it #26387

Workflow file for this run

name: ci
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
tidb-check:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Verify duplicated file names
run: ./scripts/verify-duplicated-file-name.sh
- name: Verify internal links and anchors - tidb only
run: |
npm i
node ./scripts/filterNonCloudDoc.js
cp -r ./scripts ./tmp
cp -r ./media ./tmp
cp .gitignore ./tmp/
cd ./tmp
./scripts/verify-links.sh
./scripts/verify-link-anchors.sh
tidb-cloud-check:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Check TOC-tidb-cloud.md existence
id: check_cloud_toc
uses: andstor/file-existence-action@v2
with:
files: "TOC-tidb-cloud.md"
- name: Verify internal links - cloud only
if: steps.check_cloud_toc.outputs.files_exists == 'true'
run: |
npm i
node ./scripts/filterCloudDoc.js
cp -r ./scripts ./tmp
cp -r ./media ./tmp
cp .gitignore ./tmp/
cd ./tmp
./scripts/verify-links.sh
./scripts/verify-link-anchors.sh
vale:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Vale Linter
uses: errata-ai/[email protected]
with:
# Optional
# Specify file path to lint
#files: .
# Optional
onlyAnnotateModifiedLines: true
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}