mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 14:32:57 +00:00
Clone wiki only for steps which need it
This commit is contained in:
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
@@ -33,11 +33,6 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: main
|
path: main
|
||||||
- name: Clone Wiki
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: ${{github.repository}}.wiki
|
|
||||||
path: wiki
|
|
||||||
- name: Set Up Python
|
- name: Set Up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@@ -51,8 +46,20 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
# Full logs for CI build
|
# Full logs for CI build
|
||||||
BUILDKIT_PROGRESS: plain
|
BUILDKIT_PROGRESS: plain
|
||||||
|
- name: Clone Wiki
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: ${{github.repository}}.wiki
|
||||||
|
path: wiki
|
||||||
- name: Run Post-Build Hooks
|
- name: Run Post-Build Hooks
|
||||||
run: make -C main hook-all
|
run: make -C main hook-all
|
||||||
|
- name: Push Wiki to GitHub
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
# Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var
|
||||||
|
run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
LOCAL_PATH: ../wiki
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: >
|
run: >
|
||||||
@@ -61,10 +68,3 @@ jobs:
|
|||||||
- name: Push Images to DockerHub
|
- name: Push Images to DockerHub
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: make -C main push-all
|
run: make -C main push-all
|
||||||
- name: Push Wiki to GitHub
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
# Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var
|
|
||||||
run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
LOCAL_PATH: ../wiki
|
|
||||||
|
Reference in New Issue
Block a user