Archive failed runs on the same server

This commit is contained in:
Eren Dogan
2023-01-28 20:33:53 -08:00
parent 30e085ccc2
commit a43ecee5b1
+5 -4
View File
@@ -37,7 +37,8 @@ jobs:
make -k -j 48
- name: Archive
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: Regress Archives
path: ${{ github.workspace }}/compiler/tests/results/*
run: |
export ARCHIVE_DIR="/tmp/github_runner_fail_${{ github.run_id }}_${{ github.run_attempt }}"
mkdir -p $ARCHIVE_DIR
cp -r ${{ github.workspace }}/compiler/tests/results/* $ARCHIVE_DIR
echo "Files of this run are located in $ARCHIVE_DIR"