Skip to content

Commit

Permalink
Fix Git ownership so hugo can read git log (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtatum authored Jan 8, 2024
1 parent f9bf294 commit 836d8e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ rm -rf *
popd

WORKDIR="${GITHUB_WORKSPACE:-/github/workspace}"

# Fix ownership on workdir so Git log can be read
chown -R $(id -u):$(id -g) $WORKDIR

# Use the hugo serve command to create a website that will be used for link checking
pushd ${WORKDIR}/${HUGO_ROOT}
hugo serve --baseUrl http://localhost:1313 --contentDir ${WORKDIR}/${HUGO_CONTENT_ROOT} &
Expand Down

0 comments on commit 836d8e0

Please sign in to comment.