Skip to content

Commit 9d5f2f7

Browse files
committed
Explicitly request PR repo
1 parent 6768fdb commit 9d5f2f7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: .github/workflows/build-hpc.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ jobs:
9999
cmake --install build --prefix installation
100100
popd
101101
{% endfor %}
102-
mkdir -p ${{ github.repository }}
103-
pushd ${{ github.repository }}
102+
set REPO=${{ github.event.pull_request.head.repo.full_name || github.repository }}
103+
mkdir -p %REPO%
104+
pushd %REPO%
104105
git init
105-
git remote add origin ${{ github.server_url }}/${{ github.repository }}
106+
git remote add origin ${{ github.server_url }}/%REPO%
106107
git fetch origin ${{ github.sha }}
107108
git reset --hard FETCH_HEAD
108109
popd
109-
cmake -G Ninja -S ${{ github.repository }} -B build \
110+
cmake -G Ninja -S %REPO% -B build \
110111
{% for name in dependencies %}
111112
{% set org, proj = name.split('/') %}
112113
-D{{proj}}_ROOT=$BASEDIR/{{name}}/installation \

0 commit comments

Comments
 (0)