Skip to content

Commit 4186d8f

Browse files
authored
Merge pull request #1343 from mathbunnyru/asalikhov/fast_docs_lock
Clone wiki only for steps which need it
2 parents b1f6915 + 5f9a5f5 commit 4186d8f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ jobs:
3333
uses: actions/checkout@v2
3434
with:
3535
path: main
36-
- name: Clone Wiki
37-
uses: actions/checkout@v2
38-
with:
39-
repository: ${{github.repository}}.wiki
40-
path: wiki
4136
- name: Set Up Python
4237
uses: actions/setup-python@v2
4338
with:
@@ -51,8 +46,20 @@ jobs:
5146
env:
5247
# Full logs for CI build
5348
BUILDKIT_PROGRESS: plain
49+
- name: Clone Wiki
50+
uses: actions/checkout@v2
51+
with:
52+
repository: ${{github.repository}}.wiki
53+
path: wiki
5454
- name: Run Post-Build Hooks
5555
run: make -C main hook-all
56+
- name: Push Wiki to GitHub
57+
if: github.ref == 'refs/heads/master'
58+
# Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var
59+
run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki'
60+
env:
61+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
62+
LOCAL_PATH: ../wiki
5663
- name: Login to Docker Hub
5764
if: github.ref == 'refs/heads/master'
5865
run: >
@@ -61,10 +68,3 @@ jobs:
6168
- name: Push Images to DockerHub
6269
if: github.ref == 'refs/heads/master'
6370
run: make -C main push-all
64-
- name: Push Wiki to GitHub
65-
if: github.ref == 'refs/heads/master'
66-
# Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var
67-
run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki'
68-
env:
69-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
70-
LOCAL_PATH: ../wiki

0 commit comments

Comments
 (0)