Skip to content

Commit e655fb3

Browse files
committed
Use core.isDebug() instead of accessing env var
1 parent b380175 commit e655fb3

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/init-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ async function run() {
186186
getOptionalInput("config-file"),
187187
getOptionalInput("db-location"),
188188
// Debug mode is enabled if:
189+
// - The `init` Action is passed `debug: true`.
189190
// - Actions step debugging is enabled (e.g. by [enabling debug logging for a rerun](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs#re-running-all-the-jobs-in-a-workflow),
190191
// or by setting the `ACTIONS_STEP_DEBUG` secret to `true`).
191-
// - The `init` Action is passed `debug: true`.
192-
getOptionalInput("debug") === "true" || !!process.env["RUNNER_DEBUG"],
192+
getOptionalInput("debug") === "true" || core.isDebug(),
193193
getOptionalInput("debug-artifact-name") || DEFAULT_DEBUG_ARTIFACT_NAME,
194194
getOptionalInput("debug-database-name") || DEFAULT_DEBUG_DATABASE_NAME,
195195
repositoryNwo,

0 commit comments

Comments
 (0)