We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b908872 commit 745892dCopy full SHA for 745892d
script.sh
@@ -26,6 +26,11 @@ echo To connect to this session copy-n-paste the following into a terminal:
26
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
27
echo After connecting you can run 'touch /tmp/keepalive' to disable the 15m timeout
28
29
+if [[ ! -z "$SLACK_WEBHOOK_URL" ]]; then
30
+ MSG=$(tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}')
31
+ curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"$MSG\"}" $SLACK_WEBHOOK_URL
32
+fi
33
+
34
# Wait for connection to close or timeout in 15 min
35
timeout=$((15*60))
36
while [ -S /tmp/tmate.sock ]; do
0 commit comments