Skip to content

Commit b1d6d99

Browse files
committed
Windows Artifacts have incorrect Slugification
e.g. https://github.com/pylint-dev/pylint-pytest/actions/runs/6592065982?pr=2 Signed-off-by: Stavros Ntentos <[email protected]>
1 parent c1547d9 commit b1d6d99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/run-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v3
4444

45-
- name: Slugify GITHUB_REPOSITORY
45+
- name: Slugify GITHUB_REPOSITORY (win)
46+
if: ${{ matrix.os == 'windows-latest' }}
47+
run: echo "GITHUB_REPOSITORY_SLUG=$(echo $env:GITHUB_REPOSITORY -replace '/', '_')" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
48+
49+
- name: Slugify GITHUB_REPOSITORY (non-win)
50+
if: ${{ matrix.os != 'windows-latest' }}
4651
run: echo "GITHUB_REPOSITORY_SLUG=${GITHUB_REPOSITORY////_}" >> $GITHUB_ENV
4752

4853
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)