mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-12-28 18:04:50 -05:00
🐛Ensure the default $PATH
value is pre-loaded
This patch imports the system-global profile script to populate the `$PATH` variable with the typically available binary paths. Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112#issuecomment-1340065840
This commit is contained in:
parent
ce291dce5b
commit
57e7d53102
2 changed files with 3 additions and 0 deletions
2
.github/workflows/self-smoke-test-action.yml
vendored
2
.github/workflows/self-smoke-test-action.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue