-
-
Notifications
You must be signed in to change notification settings - Fork 97
Integrate GitHub actions debug mode detection #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Meanwhile, we can add with:
verbose: ${{ toJSON(runner.debug == '1') }} |
@Jomik nice find! Though, what I have in mind is a more integrated approach. This input only adds |
Observations: when restarting jobs and using that checkbox to enable debug logging, GHA internally sets And when This means, that whether the internal GHA machinery within the runners is requested to output detailed logs can be detected with Refs https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs. And detecting the step debug (for user-provided actions or run-steps) has more ways:
Additionally, printing out The question is whether we need to care about the runner debug requests or not. |
This should be possible by inspecting the following information sources:
RUNNER_DEBUG
(environment variable): https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variablesACTIONS_RUNNER_DEBUG
(var or secrets context): https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging#enabling-runner-diagnostic-loggingACTIONS_STEP_DEBUG
(var or secrets context): https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-loggingThere's additionally
${{ runner.debug }}
to look at: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context.Ref: https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/re-running-workflows-and-jobs#about-re-running-workflows-and-jobs
We may also want to take the rerun attempt into account.
Could provide a
skip-existing-on: rerun | debug | second/third-attempt
or something.The text was updated successfully, but these errors were encountered: