Skip to content

Commit

Permalink
Sanitize artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Sep 5, 2024
1 parent 18e09f8 commit b7a2f2a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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
Expand Down

0 comments on commit b7a2f2a

Please sign in to comment.