File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,31 @@ To release the session run `unblock` or `sudo reboot` from the SSH session.
52
52
Watch a demo :
53
53
54
54
<iframe width="560" height="315" src="https://www.youtube.com/embed/l9VuQZ4a5pc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
55
+
56
+ # # Advanced: debug without blocking the build step
57
+
58
+ If you don't want to block at this build step, but want to connect mid-way through a build, you can do with `block : false` option.
59
+
60
+ ` ` ` yaml
61
+ steps:
62
+ - uses: self-actuated/connect-ssh@master
63
+ with:
64
+ block: false
65
+ ` ` `
66
+
67
+ If you are unable to connect with SSH in time, you can add a short sleep at the end of your build :
68
+
69
+ ` ` ` yaml
70
+ jobs:
71
+ connect:
72
+ name: connect
73
+ runs-on: [actuated-8cpu-8gb]
74
+ steps:
75
+ - uses: self-actuated/connect-ssh@master
76
+ with:
77
+ block: false
78
+ - run: |
79
+ echo "Sleep for 5 minutes, since connect-ssh isn't going to block"
80
+ sleep 500
81
+ ` ` `
82
+
You can’t perform that action at this time.
0 commit comments