fix(ci): Run tmate session onlyl starts if a previous step failed
Set timeout also
diff --git a/.github/workflows/ceph.yml b/.github/workflows/ceph.yml
index 112379a..ef452e5 100644
--- a/.github/workflows/ceph.yml
+++ b/.github/workflows/ceph.yml
@@ -59,7 +59,9 @@
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
+ if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
+ timeout-minutes: 60
- name: Run Molecule Destroy
run: poetry run molecule destroy -s ceph