From 7e4a23c9cb5f07554b251e686f34a9cf381a73cc Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <v.g.vassilev@gmail.com>
Date: Sun, 26 Mar 2023 08:07:57 +0000
Subject: [PATCH] Add debugging facility

---
 .github/workflows/root-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml
index fe4d2ff3b10..264554ed05c 100644
--- a/.github/workflows/root-ci.yml
+++ b/.github/workflows/root-ci.yml
@@ -358,6 +358,11 @@ jobs:
         with:
           name:  Test Results ${{ matrix.image }} ${{ matrix.config }}
           path: /tmp/workspace/build/TestResults.xml
+      - name: Setup tmate session
+        if: ${{ failure() }}
+        uses: mxschmitt/action-tmate@v3
+        # When debugging increase to a suitable value!
+        timeout-minutes: ${{ github.event.pull_request && 40 || 20 }}
 
   event_file:
     if: github.repository_owner == 'root-project' || github.event_name == 'pull_request'
-- 
GitLab