Skip to content

Commit 179dc05

Browse files
authored
Don't build GFM if it already exists (#50)
This also allows the caller to provide their own copy
1 parent 47779bc commit 179dc05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pelican/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ runs:
5656
WORKDIR: /opt/pelican-asf # where to build GFM
5757
GFM_VERSION: '0.28.3.gfm.12' # ensure we agree with build-cmark.sh script
5858
run: |
59+
# Does the GFM build already exist?
60+
if [[ -n $LIBCMARKDIR && -d $LIBCMARKDIR ]]
61+
then
62+
echo "Already have GFM binary at $LIBCMARKDIR, skipping build"
63+
exit 0 # nothing more to do in this step
64+
fi
5965
{
6066
# disable stdout unless debug is on
6167
if [ "${{ inputs.debug }}" == 'true' ]

0 commit comments

Comments
 (0)