File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,29 @@ jobs:
92
92
echo ${CCACHE_BASEDIR}
93
93
ccache -s
94
94
fi
95
+
96
+
97
+ - name : Sanitize artifact name
98
+ id : sanitize
99
+ # This step removes special characters from the artifact name to ensure compatibility with upload-artifact
100
+ # Characters removed: " : < > | * ? \r \n \ /
101
+ # Spaces are replaced with underscores
102
+ # This sanitization prevents errors in artifact creation and retrieval
103
+ shell : pwsh
104
+ run : |
105
+ $originalName = "CGALPlugin_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
106
+ $artifact_name = $originalName -replace '[":;<>|*?\r\n\\/]', '' -replace ' ', '_'
107
+ echo "artifact_name=$artifact_name" >> $env:GITHUB_OUTPUT
108
+
109
+
95
110
- name : Create artifact
96
- uses : actions/upload-artifact@v2
111
+ uses : actions/upload-artifact@v4.4.0
97
112
with :
98
113
name : CGALPlugin_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
99
114
path : ${{ env.WORKSPACE_INSTALL_PATH }}
100
115
101
116
- name : Install artifact
102
- uses : actions/download-artifact@v2
117
+ uses : actions/download-artifact@v4.1.7
103
118
with :
104
119
name : CGALPlugin_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
105
120
path : ${{ env.WORKSPACE_ARTIFACT_PATH }}
You can’t perform that action at this time.
0 commit comments