From d615a092e1f1ea5372da56b05de3270bff5ba28c Mon Sep 17 00:00:00 2001 From: David Hiendl Date: Tue, 5 Dec 2023 10:22:28 +0100 Subject: [PATCH] use ACTIONS_STEP_DEBUG to determine debug mode --- src/action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/action.js b/src/action.js index b1e8b1b..a01fb50 100644 --- a/src/action.js +++ b/src/action.js @@ -15,9 +15,9 @@ import { try { const information = action_information.collect_all(true, false); - let debug = core.getInput('debug') != null ? (!!core.getInput('debug')) : true; + + const debug = process.env['ACTIONS_STEP_DEBUG'] === '1' || process.env['ACTIONS_STEP_DEBUG'] === 'true'; console.log('debug=', debug); - debug = true; let targetRegistries = []; const repoStr = github.context.repo.owner + '/' + github.context.repo.repo;