Skip to content

Commit 1b2a4df

Browse files
authored
re-enable Turnstyle (#227)
1 parent 0ff2936 commit 1b2a4df

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/update.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Incremental Build Triggered By Push Events
22

33
on: repository_dispatch
44

5-
concurrency: prod_environment
6-
75
jobs:
86
build:
97
name: Retrieve docs and deploy the website
@@ -16,6 +14,13 @@ jobs:
1614
- name: Bailout
1715
if: ${{ !github.event.client_payload.sha }}
1816
run: exit 1
17+
18+
# make sure there is only one workflow running
19+
- name: Turnstyle
20+
if: ${{ !env.ACT }}
21+
uses: softprops/turnstyle@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1924

2025
- name: Set known_hosts
2126
if: ${{ !env.ACT && github.repository_owner == 'pingcap' }}
@@ -76,6 +81,7 @@ jobs:
7681
env:
7782
GITHUB_AUTHORIZATION_TOKEN: ${{ secrets.GH_TOKEN }}
7883
run: |
84+
sudo rm -fr ./markdown-pages/*
7985
yarn download:tidb:en:all
8086
yarn download:tidb:zh:all
8187
yarn download:dm:all
@@ -174,6 +180,6 @@ jobs:
174180
175181
# if does full building, store latest commit sha of all docs repo
176182
- name: Update all commit hashes
177-
if: github.event.client_payload.download_type == 'full'
183+
if: ${{ github.event.client_payload.download_type == 'full' || steps.check-file-exists.outputs.isEmpty }}
178184
run: |
179185
bash ./scripts/get-latest-commits.sh ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)