Skip to content

Commit 5670e38

Browse files
committed
Sanitize pattern names
1 parent 58d25ce commit 5670e38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,16 @@ jobs:
166166
env:
167167
UV_PYTHON: ${{ matrix.python-version }}
168168

169+
- name: Sanitize pattern for artifact name
170+
id: sanitize
171+
run: |
172+
SANITIZED_PATTERN=$(echo "${{ matrix.ci_pattern }}" | sed 's/::/-/g' | sed 's/:/-/g' | sed 's|/|-|g')
173+
echo "name=coverage-data-ci-${{ matrix.python-version }}-${SANITIZED_PATTERN}" >> "$GITHUB_OUTPUT"
174+
169175
- name: Upload coverage data
170176
uses: actions/upload-artifact@v4
171177
with:
172-
name: |
173-
coverage-data-ci-${{ matrix.python-version }}-${{ matrix.ci_pattern}}
178+
name: ${{ steps.sanitize.outputs.name }}
174179
path: .coverage.*
175180
include-hidden-files: true
176181
if-no-files-found: error

0 commit comments

Comments
 (0)