Skip to content

Commit 6bab2e7

Browse files
committed
Fix showing error details in the dev release action
1 parent 0328ee5 commit 6bab2e7

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/github-release

1 file changed

+2
-2
lines changed

.github/actions/github-release/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function runOnce() {
5656
force: true,
5757
});
5858
} catch (e) {
59-
console.log("ERROR: ", JSON.stringify(e.data, null, 2));
59+
console.log("ERROR: ", JSON.stringify(e.response, null, 2));
6060
core.info(`creating dev tag`);
6161
try {
6262
await octokit.rest.git.createRef({
@@ -68,7 +68,7 @@ async function runOnce() {
6868
} catch (e) {
6969
// we might race with others, so assume someone else has created the
7070
// tag by this point.
71-
console.log("failed to create tag: ", JSON.stringify(e.data, null, 2));
71+
console.log("failed to create tag: ", JSON.stringify(e.response, null, 2));
7272
}
7373
}
7474

0 commit comments

Comments
 (0)