[GH-ISSUE #755] Enhancement: Allow for spawning a shell on failure #475

Closed
opened 2026-03-01 21:43:44 +03:00 by kerem · 3 comments
Owner

Originally created by @fugkco on GitHub (Jul 18, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/755

Would be nice to get act to a spawn a shell on error to investigate what might be going wrong.

Something along the lines of:

$ act --shell-on-error
...
root@host:/tmp/testing#
Originally created by @fugkco on GitHub (Jul 18, 2021). Original GitHub issue: https://github.com/nektos/act/issues/755 Would be nice to get act to a spawn a shell on error to investigate what might be going wrong. Something along the lines of: ``` $ act --shell-on-error ... root@host:/tmp/testing# ```
Author
Owner

@catthehacker commented on GitHub (Jul 18, 2021):

You can use docker exec -ti <container> <executable> to run shell or anything else in it

<!-- gh-comment-id:882070364 --> @catthehacker commented on GitHub (Jul 18, 2021): You can use `docker exec -ti <container> <executable>` to run shell or anything else in it
Author
Owner

@fugkco commented on GitHub (Aug 4, 2021):

Cool. Thanks! Only after I raised this feature request did I realise that act doesn't clean up the containers after the run.

<!-- gh-comment-id:892460683 --> @fugkco commented on GitHub (Aug 4, 2021): Cool. Thanks! Only after I raised this feature request did I realise that act doesn't clean up the containers after the run.
Author
Owner

@catthehacker commented on GitHub (Aug 9, 2021):

Since we support running multiple workflows and matrixes at the same time I don't think it would be good to implement this (at least for now) as we would have to do lots of weird things and the way it would work at most would be confusing to users.
Closing for now

<!-- gh-comment-id:895533392 --> @catthehacker commented on GitHub (Aug 9, 2021): Since we support running multiple workflows and matrixes at the same time I don't think it would be good to implement this (at least for now) as we would have to do lots of weird things and the way it would work at most would be confusing to users. Closing for now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#475
No description provided.