Skip to content

Commit

Permalink
fix: adjust PR url
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfred committed Nov 27, 2024
1 parent 1b5e829 commit aa402ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pull_request_secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ jobs:
name: Build Documentation
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
HEAD_OWNER: ${{ github.event.pull_request.head.repo.owner.login || 'TimefoldAI' }}
GURL: "https://github.com/${{ github.event.pull_request.head.repo.owner.login || 'TimefoldAI' }}/timefold-solver"
steps:
- name: Install yq
run: |
Expand All @@ -291,9 +291,6 @@ jobs:
env:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
run: |
export GURL="https://github.com/${{ env.HEAD_OWNER }}/timefold-solver"
echo $GURL
echo $BRANCH_NAME
yq -i e 'del(.content.sources)' apps/docs/antora-playbook.yml
yq -i e 'del(.site.keys)' apps/docs/antora-playbook.yml
yq -i e '.content.sources += [{"url": env(GURL), "branches": env(BRANCH_NAME), "start_path": "docs/src"}]' apps/docs/antora-playbook.yml
Expand Down

0 comments on commit aa402ea

Please sign in to comment.