Skip to content

Commit

Permalink
🐛 Avoid broken env vars passed by GHA from host
Browse files Browse the repository at this point in the history
Fixes #112.
  • Loading branch information
webknjaz committed Dec 6, 2022
1 parent dfae161 commit 1350b8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
set -Eeuo pipefail


# NOTE: These variables are needed to combat GitHub passing broken env vars
# NOTE: from the runner VM host runtime.
# Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112
export PATH="$(python -m site --user-base)/bin:${PATH}"
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"


if [[
"$INPUT_USER" == "__token__" &&
! "$INPUT_PASSWORD" =~ ^pypi-
Expand Down

0 comments on commit 1350b8b

Please sign in to comment.