mxschmitt / action-tmate

Debug your GitHub Actions via SSH by using tmate to get access to the runner system itself.
https://mxschmitt.github.io/action-tmate/
MIT License
2.95k stars 289 forks source link

tmate action keeps running and printing same ssh / webshell URLs #161

Closed v-thakkar closed 1 year ago

v-thakkar commented 1 year ago

I tried to use action-tmate today. For some reason, the action keeps running continuously while printing the same webshell URL and ssh. It doesn't stop until I manually cancel the workflow. Is this an expected behavior? Here is how I'm setting it:

- name: tmate session if tests fail
   if: failure()
   uses: mxschmitt/action-tmate@v3

Any idea what am I doing wrong? Thanks!

mxschmitt commented 1 year ago

This is expected to work around a log display bug on GitHub side.

v-thakkar commented 1 year ago

Ah, ok. Thanks for the quick reply. Do you have any link handy for that Github log display bug? Was just curious to know what it is about.

mxschmitt commented 1 year ago

I think it was https://github.com/mxschmitt/action-tmate/issues/1.

greatwolf commented 8 months ago

Is this workaround still necessary though with this feature rolling out? https://github.com/orgs/community/discussions/89879