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

This commit is contained in:
Tingluo Huang
2020-03-02 07:45:27 -05:00
committed by GitHub
parent 54bcb7c4f1
commit a649207792
4 changed files with 41 additions and 10 deletions

View File

@@ -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) {