Skip to content

Commit 21e579b

Browse files
committed
Don't make assumptions about directory name
1 parent ffa1d37 commit 21e579b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pelican/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ runs:
7373
# Don't pollute site checkout
7474
mkdir -p $WORKDIR
7575
pushd $WORKDIR
76-
bash ${{ github.action_path }}/build-cmark.sh $GFM_VERSION
76+
# build the code and define LIBCMARKDIR
77+
bash ${{ github.action_path }}/build-cmark.sh $GFM_VERSION | grep "export LIBCMARKDIR" >/tmp/libcmarkdir.$$
78+
source /tmp/libcmarkdir.$$
7779
popd
7880
# ensure LIBCMARKDIR is defined for subsequent steps
79-
echo "LIBCMARKDIR=${WORKDIR}/cmark-gfm-${GFM_VERSION}/lib" >> $GITHUB_ENV
81+
echo "LIBCMARKDIR=${LIBCMARKDIR}" >> $GITHUB_ENV
8082
}
8183
8284
- name: Generate website from markdown

0 commit comments

Comments
 (0)