Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
git remote add upstream https://github.com/pingcap/docs.git
git fetch upstream
wget https://raw.githubusercontent.com/CharLotteiu/pingcap-docs-checks/main/check-file-encoding.py
python3 check-file-encoding.py $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' ':(exclude).github/*')
python3 check-file-encoding.py $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' ':(exclude).github/*')

- run:
name: "Check git conflicts"
command: |
wget https://raw.githubusercontent.com/CharLotteiu/pingcap-docs-checks/main/check-conflicts.py
python3 check-conflicts.py $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' '*.yml' '*.yaml')
python3 check-conflicts.py $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' '*.yml' '*.yaml')

- run:
name: "Install markdownlint"
Expand All @@ -38,7 +38,7 @@ jobs:
- run:
name: "Lint edited files"
command: |
markdownlint $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' ':(exclude).github/*')
markdownlint $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' ':(exclude).github/*')

- run:
name: "Check internal links"
Expand All @@ -54,19 +54,19 @@ jobs:
name: "Check control characters"
command: |
wget https://raw.githubusercontent.com/CharLotteiu/pingcap-docs-checks/main/check-control-char.py
python3 check-control-char.py $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' ':(exclude).github/*')
python3 check-control-char.py $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' ':(exclude).github/*')

- run:
name: "Check unclosed tags"
command: |
wget https://raw.githubusercontent.com/CharLotteiu/pingcap-docs-checks/main/check-tags.py
python3 check-tags.py $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' ':(exclude).github/*')
python3 check-tags.py $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' ':(exclude).github/*')

- run:
name: "Check manual line breaks"
command: |
wget https://raw.githubusercontent.com/CharLotteiu/pingcap-docs-checks/main/check-manual-line-breaks.py
python3 check-manual-line-breaks.py $(git diff-tree --name-only --no-commit-id -r upstream/master..HEAD -- '*.md' ':(exclude).github/*')
python3 check-manual-line-breaks.py $(git diff-tree --name-only --no-commit-id -r upstream/release-5.1..HEAD -- '*.md' ':(exclude).github/*')

build:
docker:
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
name: "Publish PDF to Qiniu and S3"
command: |
sudo bash -c 'echo "222.222.95.49 uc.qbox.me" >> /etc/hosts';
if [ "${CIRCLE_BRANCH}" == "master" ]; then
if [ "${CIRCLE_BRANCH}" == "release-5.1" ]; then
python3 scripts/upload.py output.pdf tidb-dev-en-manual.pdf;
fi

Expand All @@ -123,4 +123,4 @@ workflows:
filters:
branches:
only:
- master
- release-5.1
2 changes: 1 addition & 1 deletion .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Repsitory dispatch workflow from docs
on:
push:
branches:
- master
- release-5.1

jobs:
build:
Expand Down