🐛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
|
@ -84,6 +84,8 @@ jobs:
|
||||||
}}/public/
|
}}/public/
|
||||||
- name: ✅ Smoke-test the locally checked out action
|
- name: ✅ Smoke-test the locally checked out action
|
||||||
uses: ./test
|
uses: ./test
|
||||||
|
env:
|
||||||
|
PATH: utter-nonsense
|
||||||
with:
|
with:
|
||||||
user: ${{ env.devpi-username }}
|
user: ${{ env.devpi-username }}
|
||||||
password: ${{ env.devpi-password }}
|
password: ${{ env.devpi-password }}
|
||||||
|
|
|
@ -5,6 +5,7 @@ set -Eeuo pipefail
|
||||||
# NOTE: These variables are needed to combat GitHub passing broken env vars
|
# NOTE: These variables are needed to combat GitHub passing broken env vars
|
||||||
# NOTE: from the runner VM host runtime.
|
# NOTE: from the runner VM host runtime.
|
||||||
# Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112
|
# 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 PATH="$(python -m site --user-base)/bin:${PATH}"
|
||||||
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"
|
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue