Skip to content

Commit

Permalink
🐛Ensure the default $PATH value is pre-loaded
Browse files Browse the repository at this point in the history
This patch imports the system-global profile script to
populate the `$PATH` variable with the typically available binary
paths.

Ref:
#112 (comment)
  • Loading branch information
webknjaz committed Dec 6, 2022
1 parent ce291dc commit 57e7d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/self-smoke-test-action.yml
Expand Up @@ -84,6 +84,8 @@ jobs:
}}/public/
- name: ✅ Smoke-test the locally checked out action
uses: ./test
env:
PATH: utter-nonsense
with:
user: ${{ env.devpi-username }}
password: ${{ env.devpi-password }}
Expand Down
1 change: 1 addition & 0 deletions twine-upload.sh
Expand Up @@ -5,6 +5,7 @@ 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
. /etc/profile # Makes python and other executables findable
export PATH="$(python -m site --user-base)/bin:${PATH}"
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"

Expand Down

0 comments on commit 57e7d53

Please sign in to comment.