Fix showing error details in the dev release action

This commit is contained in:
bjorn3 2024-04-07 17:05:25 +00:00
parent 0328ee571b
commit 6bab2e750b

View File

@ -56,7 +56,7 @@ async function runOnce() {
force: true,
});
} catch (e) {
console.log("ERROR: ", JSON.stringify(e.data, null, 2));
console.log("ERROR: ", JSON.stringify(e.response, null, 2));
core.info(`creating dev tag`);
try {
await octokit.rest.git.createRef({
@ -68,7 +68,7 @@ async function runOnce() {
} catch (e) {
// we might race with others, so assume someone else has created the
// tag by this point.
console.log("failed to create tag: ", JSON.stringify(e.data, null, 2));
console.log("failed to create tag: ", JSON.stringify(e.response, null, 2));
}
}