Skip to content

Commit a6c636d

Browse files
committed
logs
1 parent 379f153 commit a6c636d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dispatch/dist/action.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6013,6 +6013,8 @@ async function run() {
60136013
const docs_path = core.getInput("docs_path");
60146014
const pkg_path = core.getInput("pkg_path");
60156015

6016+
console.log(token.length);
6017+
60166018
const octokit = github.getOctokit(token);
60176019

60186020
const dispatchResp = await octokit.rest.actions.createWorkflowDispatch({
@@ -6029,7 +6031,7 @@ async function run() {
60296031
});
60306032
core.info(`API response status: ${dispatchResp.status} 🚀`);
60316033
} catch (error) {
6032-
core.setFailed(error.message);
6034+
throw error;
60336035
}
60346036
}
60356037

dispatch/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ async function run(): Promise<void> {
99
const docs_path = core.getInput("docs_path");
1010
const pkg_path = core.getInput("pkg_path");
1111

12+
console.log(token.length);
13+
1214
const octokit = github.getOctokit(token);
1315

1416
const dispatchResp = await octokit.rest.actions.createWorkflowDispatch({
@@ -25,6 +27,7 @@ async function run(): Promise<void> {
2527
});
2628
core.info(`API response status: ${dispatchResp.status} 🚀`);
2729
} catch (error) {
30+
throw error;
2831
core.setFailed(error.message);
2932
}
3033
}

0 commit comments

Comments
 (0)