Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xunmod committed Feb 2, 2024
1 parent a4a681a commit 2381127
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,18 @@ jobs:
name: Images
path: 'images.tar.gz'
- name: Setup tmate session
uses: mxschmitt/action-tmate@v2
if: ${{ failure() || inputs.enable_ssh }}
run: |
wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
tar -tf tmate-2.4.0-static-linux-amd64.tar.xz
sudo mv tmate*/tmate /usr/bin
sudo chown +x /usr/bin/tmate
tmate
cat << EOF >> tmate_keeper
while true
do
sleep 1800
done
EOF
chmod +x tmate_keeper
./tmate_keeper

0 comments on commit 2381127

Please sign in to comment.