Skip to content

Commit f342690

Browse files
committed
Sanitize artifact name
1 parent 18e09f8 commit f342690

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,25 @@ jobs:
5858
echo ${CCACHE_BASEDIR}
5959
ccache -s
6060
fi
61+
62+
- name: Sanitize artifact name
63+
id: sanitize
64+
run: |
65+
artifact_name=$(echo "ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}" | \
66+
tr -d '":;<>|*?\r\n\\/' | \
67+
tr ' ' '_')
68+
echo "artifact_name=$artifact_name" >> $GITHUB_OUTPUT
6169
6270
- name: Create artifact
6371
uses: actions/[email protected]
6472
with:
65-
name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
73+
name: ${{ steps.sanitize.outputs.artifact_name }}
6674
path: ${{ env.WORKSPACE_INSTALL_PATH }}
6775

6876
- name: Install artifact
6977
uses: actions/[email protected]
7078
with:
71-
name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
79+
name: ${{ steps.sanitize.outputs.artifact_name }}
7280
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}
7381

7482
- name: Check environment for tests

0 commit comments

Comments
 (0)