From b8660e47a174857934670f5791863b8bb68b961f Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 22 Jun 2021 15:05:13 +0800 Subject: [PATCH] change docs configs to release-5.1 --- .circleci/config.yml | 16 ++++++++-------- .github/workflows/dispatch.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 949e1028799dc..fa2e2f77e9278 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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" @@ -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" @@ -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: @@ -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 @@ -123,4 +123,4 @@ workflows: filters: branches: only: - - master + - release-5.1 diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index dbc0619e656ca..3aad9687a4b54 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -3,7 +3,7 @@ name: Repsitory dispatch workflow from docs on: push: branches: - - master + - release-5.1 jobs: build: