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 f342690 commit 20ebcbb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ jobs:
- name: Sanitize artifact name
id: sanitize
# This step removes special characters from the artifact name to ensure compatibility with upload-artifact
# Characters removed: " : < > | * ? \r \n \ /
# Spaces are replaced with underscores
# This sanitization prevents errors in artifact creation and retrieval
run: |
artifact_name=$(echo "ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}" | \
tr -d '":;<>|*?\r\n\\/' | \
tr ' ' '_')
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
- name: Create artifact
Expand Down

0 comments on commit 20ebcbb

Please sign in to comment.