Skip to content

Commit

Permalink
fix BASE_URL for PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Aug 12, 2024
1 parent 3c628e0 commit 0d6634d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-book-pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
run: |
# check if binder-folder has changed
# if changed, then a docker rebuild is needed
echo "binder" $(git diff --quiet ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- binder|| echo changed)
echo "notebooks" $(git diff --quiet ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- notebooks || echo changed)
echo "REBUILD=$(git diff --quiet ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- binder || echo changed)" >> $GITHUB_ENV
- name: remove Dockerfile
run: |
Expand Down Expand Up @@ -72,7 +70,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/openradar/erad2024:latest
options: --user root -v ${{ github.workspace }}:/work -e BASE_URL=/${{ github.event.repository.name }}
options: --user root -v ${{ github.workspace }}:/work -e BASE_URL=/${{ github.event.repository.name }}/_preview/${{ github.event.pull_request.number }}
shell: bash -l {0}
run: |
# copy baltrad notebooks to book dir
Expand Down

0 comments on commit 0d6634d

Please sign in to comment.