From b7a2f2a6f5a654e447b528bb3d00a09646b46078 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Thu, 5 Sep 2024 11:40:45 +0200 Subject: [PATCH] Sanitize artifact name --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c626c0a..5bfc169 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,17 +58,25 @@ jobs: echo ${CCACHE_BASEDIR} ccache -s fi + + - name: Sanitize artifact name + id: sanitize + run: | + artifact_name=$(echo "ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}" | \ + tr -d '":;<>|*?\r\n\\/' | \ + tr ' ' '_') + echo "artifact_name=$artifact_name" >> $GITHUB_OUTPUT - name: Create artifact uses: actions/upload-artifact@v4.4.0 with: - name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }} + name: ${{ steps.sanitize.outputs.sanitized_name }} path: ${{ env.WORKSPACE_INSTALL_PATH }} - name: Install artifact uses: actions/download-artifact@v4.1.7 with: - name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }} + name: ${{ steps.sanitize.outputs.sanitized_name }} path: ${{ env.WORKSPACE_ARTIFACT_PATH }} - name: Check environment for tests