-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,16 +72,28 @@ jobs: | |
# $WORKSPACE_SRC_PATH/tools/postinstall_fixup_macOS.sh "$WORKSPACE_INSTALL_PATH" | ||
# fi | ||
|
||
- 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 | ||
shell: pwsh | ||
run: | | ||
$originalName = "SoftRobots_${{ 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/upload-artifact@v2.2.4 | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: SoftRobots_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }} | ||
name: ${{ steps.sanitize.outputs.artifact_name }} | ||
path: ${{ env.WORKSPACE_INSTALL_PATH }} | ||
|
||
- name: Install artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: SoftRobots_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }} | ||
name: ${{ steps.sanitize.outputs.artifact_name }} | ||
path: ${{ env.WORKSPACE_ARTIFACT_PATH }} | ||
|
||
- name: Set env vars for tests | ||
|