From e75c160579c46d678a550ebe2f95279704d98ec6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 8 Feb 2023 17:37:01 +0100 Subject: [PATCH] feat(ci): archive logs in cypres pr run (#2879) --- .github/workflows/cypress-pr.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/cypress-pr.yml b/.github/workflows/cypress-pr.yml index cfacf6ef5..856633cd7 100644 --- a/.github/workflows/cypress-pr.yml +++ b/.github/workflows/cypress-pr.yml @@ -50,6 +50,20 @@ jobs: projects=[${projects// /,}] echo PROJECTS=$projects >> $GITHUB_ENV + # Rename required because some of the files contains the colon character (in the dates) + - name: Rename files to allow archive + if: ${{ always() }} + run: | + while read -r file; do + mv "${file}" "$(echo ${file} | sed 's|:|-|g')" + done< <(find /home/runner/.vegacapsule/testnet/logs -type f) + + - uses: actions/upload-artifact@v3 + if: ${{ always() }} + with: + name: logs-${{ matrix.project }} + path: /home/runner/.vegacapsule/testnet/logs + outputs: projects: ${{ env.PROJECTS }}