From da3f65341c55e09e24bc61c954423d3b6860400e Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 23 Sep 2024 19:27:35 +0100 Subject: [PATCH] fix: sanitize file name --- .github/workflows/test.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78548ee8f..82a4430fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -127,19 +127,18 @@ jobs: # run: yarn run cy-comp # continue-on-error: false - - name: Debug test files - run: | - echo ${{ matrix.file }} + - name: Sanitize Test File Path + run: echo "SANITIZED_FILE=$(echo ${{ matrix.file }} | sed 's/\//_/g')" >> $GITHUB_ENV - - name: Debug Cypress logs location - run: ls -R cypress + - name: Debug sanitized file + run: echo "Sanitized file $SANITIZED_FILE" - name: Upload Cypress logs # if: failure() if: always() uses: actions/upload-artifact@v4 with: - name: ${{ matrix.file | replace('/', '_') }}-cypress-logs + name: "${{ env.SANITIZED_FILE }}-cypress-logs" path: cypress/videos - name: Stop Stack