From 4048dd71f8a64920a719a2b09045c12c04484be0 Mon Sep 17 00:00:00 2001 From: alexlavrov Date: Tue, 21 Jan 2025 15:32:15 +0400 Subject: [PATCH] Replace restricted chars in job name --- .github/workflows/testcafe_tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testcafe_tests.yml b/.github/workflows/testcafe_tests.yml index cdfaebcb773..8817edafb3a 100644 --- a/.github/workflows/testcafe_tests.yml +++ b/.github/workflows/testcafe_tests.yml @@ -220,11 +220,15 @@ jobs: echo "$all_args" pnpm run test $all_args + - name: Sanitize job name + if: ${{ failure() }} + run: echo "JOB_NAME=$(echo "${{ matrix.ARGS.name }}" | tr '/' '-')" >> $GITHUB_ENV + - name: Copy compared screenshot artifacts if: ${{ failure() }} uses: actions/upload-artifact@v4 with: - name: compared-screenshots-${{ matrix.ARGS.name }} + name: compared-screenshots-${{ env.JOB_NAME }} path: ${{ github.workspace }}/e2e/testcafe-devextreme/artifacts/compared-screenshots/**/* if-no-files-found: ignore @@ -232,13 +236,15 @@ jobs: if: ${{ failure() }} uses: actions/upload-artifact@v4 with: - name: failed-tests-${{ matrix.ARGS.name }} + name: failed-tests-${{ env.JOB_NAME }} path: ${{ github.workspace }}/e2e/testcafe-devextreme/artifacts/failedtests/**/* if-no-files-found: ignore merge: runs-on: devextreme-shr2 needs: testcafe + if: contains(needs.*.result, 'failure') + steps: - name: Merge screenshot artifacts uses: actions/upload-artifact/merge@v4