mirror of
https://github.com/actions/toolkit.git
synced 2026-08-07 00:00:18 +02:00
Add core.isDebug() to check whether actions_step_debug is on or not. (#278)
This commit is contained in:
@@ -82,6 +82,12 @@ try {
|
||||
core.warning('myInput was not set');
|
||||
}
|
||||
|
||||
if (core.isDebug()) {
|
||||
// curl -v https://github.com
|
||||
} else {
|
||||
// curl https://github.com
|
||||
}
|
||||
|
||||
// Do stuff
|
||||
}
|
||||
catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user