mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #1006] Enhancement: support for RUNNER_DEBUG environmental variable #590
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#590
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kanadgupta on GitHub (Feb 17, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1006
Hello, thanks for this fantastic tool!
The way that I understand it, adding a repository secret called
ACTIONS_STEP_DEBUGand setting it totrueshould enable step debug logging.Per https://github.com/actions/runner/pull/253 and these docs, it appears that the
RUNNER_DEBUGenvironmental variable is set to1when step debug logging is enabled, but I'm not seeing that environmental variable when running this command:I haven't seen any issues or PRs related to this so I'm not sure if this is supported already. Please let me know if there's any other information I can provide. Thank you again!
@catthehacker commented on GitHub (Feb 24, 2022):
This is currently handled by
--verboseflag, do we need to add it as env variable? I don't think it should be added, but we should have better log output parity with GHA runner.@kanadgupta commented on GitHub (Feb 24, 2022):
Just to clarify, it's not solely for my own action debugging purposes. I'm adding step debug logging support to an action and I want to test application logic that only runs if step debug logging is enabled.
You can see an example of this in GitHub's docs for
@action/core, which is their package for writing JS-based actions:@catthehacker commented on GitHub (Feb 24, 2022):
I know what you are talking about and it doesn't change what I said
@kanadgupta commented on GitHub (Feb 24, 2022):
Got it! I personally see the value in having that env variable parity, but totally understand if this isn't something you plan on taking on. Appreciate this tool and the work you've put in regardless!
@devgioele commented on GitHub (May 26, 2022):
It looks like using
--verbosedoes not makecore.isDebug()evalute totrue.Am I missing something? How are we supposed to enable debugging as if
ACTIONS_STEP_DEBUGwastrue?@catthehacker commented on GitHub (May 26, 2022):
You can't, we are not the same thing as GHA runner, so naturally we don't have same feature set and log output
@devgioele commented on GitHub (May 27, 2022):
Does the architecture of act fundamentally prevent this or could I make a PR that implements it?
@catthehacker commented on GitHub (May 27, 2022):
I doubt it's impossible to implement but it will need to be tested properly.
@mjpieters commented on GitHub (Apr 5, 2023):
As a workaround just set the
RUNNER_DEBUGenvironment variable manually with--env RUNNER_DEBUG=1.@mcascone commented on GitHub (Oct 11, 2024):
Is there a way to DISABLE debug mode?