We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f645b6f commit 9d603a1Copy full SHA for 9d603a1
.github/workflows/build-python-wheel.yml
@@ -66,8 +66,15 @@ jobs:
66
python -m pip install --upgrade build
67
python -m build
68
69
- - name: Upload Dist Directory Artifact
70
- uses: actions/upload-artifact@v3
+ - name: Sanitize Branch Name and Git Hash
+ run: |
71
+ sanitized_branch_name=$(echo "${{ env.branch_name }}" | sed 's/[^a-zA-Z0-9_]/_/g')
72
+ sanitized_git_hash=$(echo "${{ env.git_hash }}" | sed 's/[^a-zA-Z0-9_]/_/g')
73
+ echo "sanitized_branch_name=$sanitized_branch_name" >> $GITHUB_ENV
74
+ echo "sanitized_git_hash=$sanitized_git_hash" >> $GITHUB_ENV
75
+
76
+ - uses: actions/upload-artifact@v3
77
with:
- name: xircuits-wheel-${{ env.branch_name }}-${{ env.git_hash }}
78
+ name: xircuits-wheel-${{ env.sanitized_branch_name }}-${{ env.sanitized_git_hash }}
79
path: dist
80
+ if-no-files-found: warn
0 commit comments