Add core.isDebug() to check whether actions_step_debug is on or not. (#278)

This commit is contained in:
Tingluo Huang authored and GitHub committed 2020-03-02 07:45:27 -05:00
1 parent 2fdecbeb4c
commit 5c16b2f4fa
3 files changed
+26

No files matched your search

+7
View File
@@ -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