Skip to content

Commit 3d8e27d

Browse files
authored
Merge pull request #918 from tsuyoshicho/fix/ci-lock-20210509
ci: add lock mutex and update latest
2 parents 9af9b56 + 7dc2d1f commit 3d8e27d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/generate.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ jobs:
3030
vim -eu tools/maketags.vim
3131
3232
cd ..
33+
- name: Lock mutex
34+
uses: shogo82148/actions-mutex@v1
35+
with:
36+
key: ${{ github.job }}
37+
- name: Update target
38+
run: |
39+
cd target
40+
# update latest
41+
git pull --rebase
42+
cd ..
43+
- name: Install new document
44+
run: |
3345
# install
3446
rsync -rlptD --delete-after work/doc/ target/doc
3547
rsync -rlptD --delete-after work/syntax/ target/syntax
@@ -75,6 +87,18 @@ jobs:
7587
make html
7688
7789
cd ..
90+
- name: Lock mutex
91+
uses: shogo82148/actions-mutex@v1
92+
with:
93+
key: ${{ github.job }}
94+
- name: Update target
95+
run: |
96+
cd target
97+
# update latest
98+
git pull --rebase
99+
cd ..
100+
- name: Install new document
101+
run: |
78102
# install
79103
cp work/target/html/doc/*.html target
80104
- name: Commit updated master branch

0 commit comments

Comments
 (0)