File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -338,13 +338,12 @@ jobs:
338338 shell : bash
339339 working-directory : /opt/countly/ui-tests/cypress
340340 run : |
341- ARTIFACT_ARCHIVE_NAME="$(date '+%Y%m%d-%H.%M')_${GITHUB_REPOSITORY#*/}_CI#${{ github.run_number }}_${{ matrix.test_type }}.tar.gz"
342-
343- find screenshots videos downloads -type d -empty -delete 2>/dev/null || true
344-
345- if [ -d screenshots ] || [ -d videos ] || [ -d downloads ]; then
346- tar zcvf "$ARTIFACT_ARCHIVE_NAME" screenshots videos downloads
347- curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"
348- else
349- echo "No artifacts to upload"
350- fi
341+ ARTIFACT_ARCHIVE_NAME="$(date '+%Y%m%d-%H.%M')_${GITHUB_REPOSITORY#*/}_CI#${{ github.run_number }}_${{ matrix.test_type }}.tar.gz"
342+
343+ mkdir -p screenshots videos downloads
344+ find screenshots videos downloads -type d -empty -delete
345+
346+ TAR_TARGETS=$(ls -d screenshots videos downloads 2>/dev/null || true)
347+
348+ tar zcvf "$ARTIFACT_ARCHIVE_NAME" $TAR_TARGETS
349+ curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"
You can’t perform that action at this time.
0 commit comments