Skip to content

Commit 13dc1ef

Browse files
committed
CD: try to fix race condition
1 parent 7148c43 commit 13dc1ef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docs-deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Docs Deploy
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["Docs Build"]
6+
types: [completed]
57
branches:
6-
- main
8+
- "main"
79

810
jobs:
911
docs-deploy:
1012
runs-on: ubuntu-latest
13+
if: ${{ github.event.workflow_run.event == 'push' }}
1114
environment:
1215
name: docs-deploy
1316
steps:
@@ -27,4 +30,3 @@ jobs:
2730
with:
2831
folder: docs/build/
2932
ssh-key: ${{ secrets.DEPLOY_KEY }}
30-
force: yes

0 commit comments

Comments
 (0)