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 bb93225
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ 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//[\":;<>|*?\\\/]}"
echo "artifact_name=$artifact_name" >> $GITHUB_OUTPUT
$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" >> $env:GITHUB_OUTPUT
- name: Create artifact
uses: actions/[email protected]
Expand Down

0 comments on commit bb93225

Please sign in to comment.