Skip to content

Commit

Permalink
Save off env
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 19, 2024
1 parent a74f133 commit 51290e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ set -e

# Ensure Git can do stuff in the working directory.
# https://github.com/pgxn/docker-pgxn-tools/issues/5
echo "SETTING DIRECTORY TO ${GITHUB_WORKSPACE:-${PWD}}" > /tmp/entrypoint.txt
git config --system --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"
env
git config --global --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"
env >> /tmp/entrypoint.txt

# Just continue if unprivileged user not requested.
[ -z "$AS_USER" ] && exec "$@"
Expand Down

0 comments on commit 51290e8

Please sign in to comment.