Skip to content

Commit fd0915d

Browse files
committed
fix(ci): missed toJson to debug the payload of the launched wrokflow
1 parent 2a2f533 commit fd0915d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,15 @@ jobs:
122122
const project = `${{ steps.parse_command.outputs.project }}`;
123123
const workflowId = `deploy-${environment}.yml`;
124124
125-
github.rest.actions.createWorkflowDispatch({
125+
const workflowDispath = github.rest.actions.createWorkflowDispatch({
126126
owner: context.repo.owner,
127127
repo: project,
128128
workflow_id: workflowId,
129129
ref: 'main', // TODO: Change branch to ref if pre, otherwise PRO should be only on main
130130
});
131131
132+
console.log(`workflowDispath REST returned data: ${JSON.stringify(workflowDispath, null, 2)}`);
133+
132134
- name: Deploy Infra
133135
if: steps.parse_command.outputs.infra != ''
134136
uses: appleboy/[email protected]

0 commit comments

Comments
 (0)