Skip to content

Commit 35bd634

Browse files
committed
Don't rely on version in build-cmark.sh script
1 parent 092259f commit 35bd634

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pelican/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ runs:
5454
shell: bash
5555
env:
5656
WORKDIR: /opt/pelican-asf # where to build GFM
57+
GFM_VERSION: '0.28.3.gfm.12' # ensure we agree with build-cmark.sh script
5758
run: |
5859
{
5960
# disable stdout unless debug is on
@@ -66,10 +67,10 @@ runs:
6667
# Don't pollute site checkout
6768
mkdir -p $WORKDIR
6869
pushd $WORKDIR
69-
bash ${{ github.action_path }}/build-cmark.sh
70+
bash ${{ github.action_path }}/build-cmark.sh $GFM_VERSION
7071
popd
7172
# ensure LIBCMARKDIR is defined for subsequent steps
72-
echo "LIBCMARKDIR=${WORKDIR}/cmark-gfm-0.28.3.gfm.12/lib" >> $GITHUB_ENV
73+
echo "LIBCMARKDIR=${WORKDIR}/cmark-gfm-${GFM_VERSION}/lib" >> $GITHUB_ENV
7374
}
7475
7576
- name: Generate website from markdown

0 commit comments

Comments
 (0)