Skip to content

Commit 6b382dd

Browse files
authored
fix(release): set python path more robustly (#833)
1 parent 217204b commit 6b382dd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release-and-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,13 @@ jobs:
191191
path: dist/
192192
- name: Set Python path
193193
run: |
194-
echo "PYTHON_PATH=$(dirname $(which python3.10))" >> $GITHUB_ENV
194+
PYTHON_PATH=$(dirname $(which python3.10))
195+
echo "PYTHON_PATH=$PYTHON_PATH" >> $GITHUB_ENV
195196
echo "$PYTHON_PATH" >> $GITHUB_PATH
196-
echo "Updated GITHUB_PATH:"
197-
echo "$GITHUB_PATH"
197+
echo "Set PYTHON_PATH to: $PYTHON_PATH"
198+
echo "Current PATH: $PATH"
199+
echo "Current GITHUB_PATH:"
200+
cat $GITHUB_PATH
198201
- name: Python Semantic Release
199202
id: semantic_release
200203
uses: python-semantic-release/[email protected]

0 commit comments

Comments
 (0)