From db6472c03b6e725815a07db0ebaf71005a736f47 Mon Sep 17 00:00:00 2001 From: camer0n Date: Wed, 27 Nov 2024 11:30:52 -0800 Subject: [PATCH] Set artifact name routine added. --- .github/workflows/test-unit.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 226583288..82a4321c5 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -163,8 +163,17 @@ jobs: --input ./e107_tests/tests/_output/coverage/codeclimate.json continue-on-error: true + - name: Set artifact name + id: set_artifact_name + run: | + TIMESTAMP=$(date +%Y%m%d%H%M%S) + INTERPRETER_IMAGE=$(echo "${{ matrix.interpreter.image }}" | sed 's/:/_/g') + DB_IMAGE=$(echo "${{ matrix.db.image }}" | sed 's/:/_/g') + ARTIFACT_NAME="tests_output_${{ github.run_id }}_${INTERPRETER_IMAGE}_${DB_IMAGE}_${TIMESTAMP}" + echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV + - name: Upload test output uses: actions/upload-artifact@v4 with: - name: tests_output_${{ github.run_id }}_${{ matrix.interpreter_image.replace(':', '_') }}_${{ matrix.database_image.replace(':', '_') }} + name: ${{ env.ARTIFACT_NAME }} path: ./e107_tests/tests/_output/