Skip to content

Commit 3ea81be

Browse files
authored
Add cross-reference to runner.debug context for conditional debug steps (#59003)
1 parent 29f0e55 commit 3ea81be

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

content/actions/how-tos/monitor-workflows/enable-debug-logging.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ Step debug logging increases the verbosity of a job's logs during and after a jo
4242

4343
1. To enable step debug logging, set the following secret or variable in the repository that contains the workflow: `ACTIONS_STEP_DEBUG` to `true`. If both the secret and variable are set, the value of the secret takes precedence over the variable.
4444
1. After setting the secret or variable, more debug events are shown in the step logs. For more information, see [AUTOTITLE](/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs#viewing-logs-to-diagnose-failures).
45+
46+
You can also use the `runner.debug` context to conditionally run steps only when debug logging is enabled. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/contexts#runner-context).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1. Optionally, to enable runner diagnostic logging and step debug logging for the re-run, select **Enable debug logging**.
1+
1. Optionally, to enable runner diagnostic logging and step debug logging for the re-run, select **Enable debug logging**. For more information, see [AUTOTITLE](/actions/how-tos/monitor-workflows/enable-debug-logging).
22
1. Click **Re-run jobs**.

0 commit comments

Comments
 (0)