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.86k stars 285 forks source link

Doesn't seem to work anymore since github is not showling live logs #174

Open CloseChoice opened 12 months ago

CloseChoice commented 12 months ago

This was a fantastic resource, but github somehow changed the way they log stuff and since I cannot see any logs of the currently running step I cannot access the server.

Is there a workaround for this?

CloseChoice commented 12 months ago

Okay, one can use the detached mode in combination with a long sleep command as a kind of a replacement for the previous behaviour. This is how I use it currently:

jobs:
  run-e2e-tests-prod:
    timeout-minutes: 60
    runs-on: ubuntu-latest
    steps:
      - <some_steps>
      - name: Setup tmate session
        uses: mxschmitt/action-tmate@v3
        with:
          detached: true
      - name: sleep forever
        run: |
          sleep 3600

Of course this is a poor replacement, since previously I could exit the session and immediatly check if my changes achieved the desired result, here I have to wait for the sleep command to finish (but one could probably build a loop where an environment variable is checked that we could set in the tmate session, but I leave this to somebody else)

sebffischer commented 12 months ago

For me it does not work with firefox but when I open the github logs with my iphone on safari they are shown.

bramtayl commented 11 months ago

Works in chrome but not firefox for me

GilbertoAristizabalEmpire commented 11 months ago

Works in chrome but not firefox for me

Same here, works on chrome but not Firefox

benbrackenc74 commented 11 months ago

https://github.com/orgs/community/discussions/66515

SanderVocke commented 9 months ago

For me it seems to work fine with Firefox on any kind of runner.

benbrackenc74 commented 9 months ago

This was fixed for me with an update to Firefox.