Skip to content

Commit 57e7d53

Browse files
committed
🐛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: #112 (comment)
1 parent ce291dc commit 57e7d53

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/self-smoke-test-action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
}}/public/
8585
- name: ✅ Smoke-test the locally checked out action
8686
uses: ./test
87+
env:
88+
PATH: utter-nonsense
8789
with:
8890
user: ${{ env.devpi-username }}
8991
password: ${{ env.devpi-password }}

twine-upload.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -Eeuo pipefail
55
# NOTE: These variables are needed to combat GitHub passing broken env vars
66
# NOTE: from the runner VM host runtime.
77
# Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112
8+
. /etc/profile # Makes python and other executables findable
89
export PATH="$(python -m site --user-base)/bin:${PATH}"
910
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"
1011

0 commit comments

Comments
 (0)