Skip to content

Commit 78cd31b

Browse files
Do not use @{u}, it does not work in detached state
1 parent a6c82b3 commit 78cd31b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/generate-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ jobs:
7777
-DDPCTL_ENABLE_DOXYREST=ON \
7878
-DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
7979
python -c "import dpctl; print(dpctl.__version__)" || exit 1
80-
cd "$(find _skbuild -name cmake-build)" || exit 1
80+
pushd "$(find _skbuild -name cmake-build)" || exit 1
8181
cmake --build . --target Sphinx || exit 1
8282
mv ../cmake-install/docs/docs ~/docs
8383
git clean -dfx
84-
git reset --hard @{u}
84+
popd
85+
git reset --hard
8586
- name: Publish docs
8687
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.ref == 'refs/heads/master' && github.event.action != 'closed' }}
8788
shell: bash -l {0}

0 commit comments

Comments
 (0)