Imported Upstream version 2.27.0
[platform/upstream/git.git] / ci / print-test-failures.sh
index e688a26..92a983a 100755 (executable)
@@ -46,6 +46,13 @@ do
                        mv "$trash_dir" failed-test-artifacts
                        continue
                        ;;
+               github-actions)
+                       mkdir -p failed-test-artifacts
+                       echo "::set-env name=FAILED_TEST_ARTIFACTS::t/failed-test-artifacts"
+                       cp "${TEST_EXIT%.exit}.out" failed-test-artifacts/
+                       tar czf failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir"
+                       continue
+                       ;;
                *)
                        echo "Unhandled CI type: $CI_TYPE" >&2
                        exit 1