Skip to content

Commit aaa1a18

Browse files
committed
Restore CWD after build
1 parent b2c8f5f commit aaa1a18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pelican/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,17 @@ runs:
5454
shell: bash
5555
run: |
5656
{
57-
# Don't pollute site checkout
58-
cd ..
5957
# disable stdout unless debug is on
6058
if [ "${{ inputs.debug }}" == 'true' ]
6159
then
6260
DEBUG_STEPS=1; export DEBUG_STEPS
6361
else
6462
exec >/dev/null
6563
fi
66-
bash ${{ github.action_path }}/build-cmark.sh
64+
# Don't pollute site checkout
65+
pushd .. # .. must agree with LIBCMARKDIR
66+
bash ${{ github.action_path }}/build-cmark.sh
67+
popd
6768
}
6869
6970
- name: Generate website from markdown

0 commit comments

Comments
 (0)