We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f645b6f commit 288a44dCopy full SHA for 288a44d
.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="${{ env.branch_name//[^a-zA-Z0-9_]/_ }}"
72
+ sanitized_git_hash="${{ env.git_hash//[^a-zA-Z0-9_]/_ }}"
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