mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-03-20 14:52:36 +08:00
Add core.isDebug() to check whether actions_step_debug is on or not. (#278)
This commit is contained in:
@@ -102,6 +102,13 @@ export function setFailed(message: string): void {
|
||||
// Logging Commands
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Gets whether Actions Step Debug is on or not
|
||||
*/
|
||||
export function isDebug(): boolean {
|
||||
return process.env['RUNNER_DEBUG'] === '1'
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes debug message to user log
|
||||
* @param message debug message
|
||||
|
||||
Reference in New Issue
Block a user