mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2025-06-06 14:47:57 +08:00
revert setFailed to setOutput
This commit is contained in:
parent
82c8e38c69
commit
f90afba39a
@ -58,7 +58,7 @@ const instance = axios.create(instanceConfig);
|
||||
core.setOutput('response', JSON.stringify(response.data))
|
||||
} catch (error) {
|
||||
if (error.toJSON) {
|
||||
core.setFailed(JSON.stringify(error.toJSON()));
|
||||
core.setOutput(JSON.stringify(error.toJSON()));
|
||||
}
|
||||
|
||||
if (error.response) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user