Skip to content

Commit

Permalink
try to fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Sep 5, 2024
1 parent 20ebcbb commit 4e1517b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ jobs:
# Characters removed: " : < > | * ? \r \n \ /
# Spaces are replaced with underscores
# This sanitization prevents errors in artifact creation and retrieval
shell: pwsh
run: |
original_name="ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
artifact_name="${original_name//[\":;<>|*?\\\/]}"
$originalName = "ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
$artifact_name = $originalName -replace '[":;<>|*?\r\n\\/]', '' -replace ' ', '_'
echo "artifact_name=$artifact_name" >> $GITHUB_OUTPUT
- name: Create artifact
Expand Down

0 comments on commit 4e1517b

Please sign in to comment.