Skip to content

Commit 085238e

Browse files
committed
Use env.GITHUB_WORKSPACE for container job artifact paths
For jobs running inside containers (container: directive), use ${{ env.GITHUB_WORKSPACE }} instead of ${{ github.workspace }}. The context variable github.workspace contains the HOST path, while the environment variable GITHUB_WORKSPACE is set correctly inside the container. Rule: - Outside containers: use ${{ github.workspace }} - Inside containers: use ${{ env.GITHUB_WORKSPACE }} Note: This work was completed with AI assistance (Claude Code).
1 parent 08bc035 commit 085238e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/wheels-docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,14 @@ jobs:
475475
echo "==> Wheel inventory:"
476476
find wheelhouse/ -name "*.whl" -exec basename {} \; 2>/dev/null | sort || echo "No wheels found"
477477
478+
# Note: For container jobs, use $GITHUB_WORKSPACE (environment variable set inside
479+
# the container) instead of ${{ github.workspace }} (context variable with host path).
478480
- name:
479481
Upload wheels, source dist and build metadata with cryptographic verification
480482
uses: wamp-proto/wamp-cicd/actions/upload-artifact-verified@main
481483
with:
482484
name: artifacts-${{ matrix.target.name }}
483-
path: ${{ github.workspace }}/wheelhouse/
485+
path: ${{ env.GITHUB_WORKSPACE }}/wheelhouse/
484486
retention-days: 30
485487

486488
# GitHub Releases, PyPI, and RTD publishing are now handled by the centralized 'release' workflow

0 commit comments

Comments
 (0)