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

+6
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) {