File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 6666 python -m pip install --upgrade build
6767 python -m build
6868
69- - name : Upload Dist Directory Artifact
70- uses : actions/upload-artifact@v3
69+ - name : Sanitize Branch Name and Git Hash
70+ 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
7177 with :
72- name : xircuits-wheel-${{ env.branch_name }}-${{ env.git_hash }}
78+ name : xircuits-wheel-${{ env.sanitized_branch_name }}-${{ env.sanitized_git_hash }}
7379 path : dist
80+ if-no-files-found : warn
You can’t perform that action at this time.
0 commit comments