Created
July 25, 2023 14:32
-
-
Save JayDoubleu/ccfe45b5cc6940e1deaf1a48388fd741 to your computer and use it in GitHub Desktop.
A task to use tmate.io for troubleshooting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: none | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- task: Bash@3 | |
displayName: Life is too short for troubleshooting | |
inputs: | |
targetType: 'inline' | |
script: | | |
set -m | |
sudo apt-get update && sudo apt-get -y install tmate | |
export TERM=xterm | |
python3 -c 'import pty; pty.spawn("/bin/tmate")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment