Skip to content

Commit

Permalink
ci: Fix Artifact Creation Failure Due to Invalid Character in Name
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
brlbil authored and ldelossa committed Dec 14, 2023
1 parent 244a5e9 commit 56b4329
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/conformance-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down

0 comments on commit 56b4329

Please sign in to comment.