mirror of
https://github.com/actions/toolkit
synced 2025-05-10 00:53:10 +00:00
Add core.isDebug() to check whether actions_step_debug is on or not. (#278)
This commit is contained in:
parent
54bcb7c4f1
commit
a649207792
4 changed files with 41 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue