From 037632a64abb625d6c3205ca6a40752466f54cbf Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 18 Mar 2022 18:30:43 +0100 Subject: [PATCH] Rename invalid path before building the uploaded artifact See https://github.com/actions/toolkit/blob/master/packages/artifact/docs/additional-information.md#non-supported-characters --- .github/workflows/ci-actions-incremental.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index e9bf51d957ad33..982841352e5d23 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -396,9 +396,17 @@ jobs: name: test-reports-maven-java${{matrix.java.name}} path: 'test-reports.tgz' retention-days: 5 + # see https://github.com/actions/toolkit/blob/master/packages/artifact/docs/additional-information.md#non-supported-characters + - name: Rename invalid path + #if: ${{ failure() || cancelled() }} + if: ${{ always() }} + run: | + if [ -d 'integration-tests/maven/target/test-classes/projects/qit?fast?jar' ]; then mv 'integration-tests/maven/target/test-classes/projects/qit?fast?jar' 'integration-tests/maven/target/test-classes/projects/qit-fast-jar'; fi + shell: bash - name: Upload build reports (if build failed) uses: actions/upload-artifact@v2 - if: ${{ failure() || cancelled() }} + #if: ${{ failure() || cancelled() }} + if: ${{ always() }} with: name: "build-reports-Maven Tests - JDK ${{matrix.java.name}}" path: |