Compare commits

...

3 Commits

Author SHA1 Message Date
Frank Jogeleit
3fee944184 Merge pull request #127 from fjogeleit/revert-conditional-stringify
revert conditional stringify which leads to breaking changes with older versions
2023-12-19 09:14:06 +01:00
Frank Jogeleit
c23f0d6631 revert conitional stringify which leads to breaking changes with older versions
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
2023-12-19 09:12:54 +01:00
Frank Jogeleit
6dd87961de update readme
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
2023-12-18 10:11:52 +01:00
4 changed files with 5 additions and 16 deletions

View File

@@ -45,6 +45,7 @@ jobs:
|httpsCert| Client Certificate as string ||
|httpsKey| Client Certificate Key as string ||
|responseFile| Persist the response data to the specified file path ||
|markResponse| If set to true, the response will be masked in the logs of the action |'false'|
|retry| optional amount of retries if the request is failing, does not retry if the status code is ignored ||
|retryWait| time between each retry in millseconds | 3000 |

10
dist/index.js vendored
View File

@@ -26612,13 +26612,7 @@ const { GithubActions } = __nccwpck_require__(8169);
* @returns {(response: axios.AxiosResponse) => void}
*/
const createMaskHandler = (actions) => (response) => {
let data = response.data
if (typeof data == 'object') {
data = JSON.stringify(data)
}
actions.setSecret(data)
actions.setSecret(JSON.stringify(response.data))
}
module.exports = { createMaskHandler }
@@ -26640,7 +26634,7 @@ const { GithubActions } = __nccwpck_require__(8169);
* @returns {(response: axios.AxiosResponse) => void}
*/
const createOutputHandler = (actions) => (response) => {
actions.setOutput('response', response.data)
actions.setOutput('response', JSON.stringify(response.data))
actions.setOutput('headers', response.headers)
}

View File

@@ -9,13 +9,7 @@ const { GithubActions } = require('../githubActions');
* @returns {(response: axios.AxiosResponse) => void}
*/
const createMaskHandler = (actions) => (response) => {
let data = response.data
if (typeof data == 'object') {
data = JSON.stringify(data)
}
actions.setSecret(data)
actions.setSecret(JSON.stringify(response.data))
}
module.exports = { createMaskHandler }

View File

@@ -9,7 +9,7 @@ const { GithubActions } = require('../githubActions');
* @returns {(response: axios.AxiosResponse) => void}
*/
const createOutputHandler = (actions) => (response) => {
actions.setOutput('response', response.data)
actions.setOutput('response', JSON.stringify(response.data))
actions.setOutput('headers', response.headers)
}