Skip to content

Commit bae3000

Browse files
Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows (#140)
* Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v2...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * change upload-artifact version * Sanitize artifact name * try to fix Windows * try to fix Windows --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Bilger <[email protected]>
1 parent 21bf590 commit bae3000

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,29 @@ jobs:
5858
echo ${CCACHE_BASEDIR}
5959
ccache -s
6060
fi
61+
62+
- name: Sanitize artifact name
63+
id: sanitize
64+
# This step removes special characters from the artifact name to ensure compatibility with upload-artifact
65+
# Characters removed: " : < > | * ? \r \n \ /
66+
# Spaces are replaced with underscores
67+
# This sanitization prevents errors in artifact creation and retrieval
68+
shell: pwsh
69+
run: |
70+
$originalName = "ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
71+
$artifact_name = $originalName -replace '[":;<>|*?\r\n\\/]', '' -replace ' ', '_'
72+
echo "artifact_name=$artifact_name" >> $env:GITHUB_OUTPUT
6173
6274
- name: Create artifact
63-
uses: actions/upload-artifact@v2
75+
uses: actions/upload-artifact@v4.4.0
6476
with:
65-
name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
77+
name: ${{ steps.sanitize.outputs.artifact_name }}
6678
path: ${{ env.WORKSPACE_INSTALL_PATH }}
6779

6880
- name: Install artifact
69-
uses: actions/download-artifact@v2
81+
uses: actions/download-artifact@v4.1.7
7082
with:
71-
name: ModelOrderReduction_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
83+
name: ${{ steps.sanitize.outputs.artifact_name }}
7284
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}
7385

7486
- name: Check environment for tests
@@ -95,7 +107,7 @@ jobs:
95107
continue-on-error: true
96108
steps:
97109
- name: Get artifacts
98-
uses: actions/download-artifact@v2
110+
uses: actions/download-artifact@v4.1.7
99111
with:
100112
path: artifacts
101113

0 commit comments

Comments
 (0)