mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2025-06-06 22:57:55 +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))
|
core.setOutput('response', JSON.stringify(response.data))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.toJSON) {
|
if (error.toJSON) {
|
||||||
core.setFailed(JSON.stringify(error.toJSON()));
|
core.setOutput(JSON.stringify(error.toJSON()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user