File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,16 @@ jobs:
99
99
cmake --install build --prefix installation
100
100
popd
101
101
{% endfor %}
102
- mkdir -p ${{ github.repository }}
103
- pushd ${{ github.repository }}
102
+ REPO=${{ github.event.pull_request.head.repo.full_name || github.repository }}
103
+ SHA=${{ github.event.pull_request.head.sha || github.sha }}
104
+ mkdir -p $REPO
105
+ pushd $REPO
104
106
git init
105
- git remote add origin ${{ github.server_url }}/${{ github.repository }}
106
- git fetch origin ${{ github.sha }}
107
+ git remote add origin ${{ github.server_url }}/$REPO
108
+ git fetch origin $SHA
107
109
git reset --hard FETCH_HEAD
108
110
popd
109
- cmake -G Ninja -S ${{ github.repository }} -B build \
111
+ cmake -G Ninja -S $REPO -B build \
110
112
{% for name in dependencies %}
111
113
{% set org, proj = name.split('/') %}
112
114
-D{{proj}}_ROOT=$BASEDIR/{{name}}/installation \
You can’t perform that action at this time.
0 commit comments