Skip to content

Commit 092259f

Browse files
committed
Use standalone workdir
1 parent de758d7 commit 092259f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pelican/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ runs:
5252
- name: fetch and build libcmark-gfm.so
5353
if: ${{ inputs.gfm == 'true' }}
5454
shell: bash
55+
env:
56+
WORKDIR: /opt/pelican-asf # where to build GFM
5557
run: |
5658
{
5759
# disable stdout unless debug is on
@@ -62,15 +64,16 @@ runs:
6264
exec >/dev/null
6365
fi
6466
# Don't pollute site checkout
65-
pushd .. # .. must agree with LIBCMARKDIR
67+
mkdir -p $WORKDIR
68+
pushd $WORKDIR
6669
bash ${{ github.action_path }}/build-cmark.sh
6770
popd
71+
# ensure LIBCMARKDIR is defined for subsequent steps
72+
echo "LIBCMARKDIR=${WORKDIR}/cmark-gfm-0.28.3.gfm.12/lib" >> $GITHUB_ENV
6873
}
6974
7075
- name: Generate website from markdown
7176
shell: bash
72-
env: # in case we are using GFM (otherwise ignored)
73-
LIBCMARKDIR: "../cmark-gfm-0.28.3.gfm.12/lib"
7477
run: |
7578
if [ "${{ inputs.debug }}" == 'true' ]
7679
then

0 commit comments

Comments
 (0)