Skip to content

Commit d11811e

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 <133706+stdedos@users.noreply.github.com>
1 parent c1547d9 commit d11811e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/run-tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ 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: |
48+
$slug = $env:GITHUB_REPOSITORY -replace '/', '_'
49+
echo "GITHUB_REPOSITORY_SLUG=$slug" | tee -Append $env:GITHUB_ENV
50+
51+
- name: Slugify GITHUB_REPOSITORY (non-win)
52+
if: ${{ matrix.os != 'windows-latest' }}
4653
run: echo "GITHUB_REPOSITORY_SLUG=${GITHUB_REPOSITORY////_}" >> $GITHUB_ENV
4754

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

0 commit comments

Comments
 (0)