From 56b4329759e784635e16abecbef671fc0408f949 Mon Sep 17 00:00:00 2001 From: Birol Bilgin Date: Thu, 14 Dec 2023 09:50:45 +0100 Subject: [PATCH] ci: Fix Artifact Creation Failure Due to Invalid Character in Name Resolved an issue where the creation of tar archives was failing. The failure was caused by the presence of an invalid '|' character in the archive name. This update modifies the archive naming process to only use 'matrix.focus', ensuring the name is valid and the archive creation succeeds. Additionally, implemented a check for the existence of the test results directory. Signed-off-by: Birol Bilgin --- .github/workflows/conformance-runtime.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conformance-runtime.yaml b/.github/workflows/conformance-runtime.yaml index 4c0240b0c9a68..353f783f19414 100644 --- a/.github/workflows/conformance-runtime.yaml +++ b/.github/workflows/conformance-runtime.yaml @@ -401,7 +401,11 @@ jobs: if: ${{ !success() && (matrix.focus == 'agent' || matrix.focus == 'datapath') }} shell: bash run: | - tar -zcf test_results-${{ join(matrix.*, '-') }}.tar.gz ./test/test_results + if [ -e ./test/test_results ];then + tar -zcf 'test_results-${{ matrix.focus }}.tar.gz' ./test/test_results + else + echo "::warning::test results directory is not exist!" + fi - name: Upload artifacts if: ${{ !success() && (matrix.focus == 'agent' || matrix.focus == 'datapath') }}