Skip to content

Commit 3c2483a

Browse files
committed
ci: minor code fmt and refactors
1 parent b5142fb commit 3c2483a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
id: parse_command
1818
with:
1919
script: |
20-
const { default: parseDeployCommand } = await import('${{ github.workspace }}/actions_scripts/parse_deployment_command.js')
21-
parseDeployCommand({context, core})
20+
const { default: parseDeployCommand } =
21+
await import('${{ github.workspace }}/actions_scripts/parse_deployment_command.js');
22+
23+
parseDeployCommand({context, core});
2224
2325
- name: Get GH Zero Day Code APP token
2426
if: ${{ !github.event.act }}
@@ -39,9 +41,9 @@ jobs:
3941
const infra = `${{ steps.parse_command.outputs.infra }}`;
4042
4143
const { default: notifyUser } =
42-
await import('${{ github.workspace }}/actions_scripts/notify_user.js')
44+
await import('${{ github.workspace }}/actions_scripts/notify_user.js');
4345
44-
return await notifyUser(github, context, steps)
46+
return await notifyUser({github, context, environment, project, infra});
4547
4648
- name: Trigger Deployment Workflow
4749
uses: actions/github-script@v7
@@ -113,6 +115,6 @@ jobs:
113115
const steps = ${{ toJSON(steps) }};
114116
115117
const { default: updatePrComment } =
116-
await import('${{ github.workspace }}/actions_scripts/update_pr_comment.js')
118+
await import('${{ github.workspace }}/actions_scripts/update_pr_comment.js');
117119
118-
await updatePrComment(github, context, steps)
120+
await updatePrComment(github, context, steps);

0 commit comments

Comments
 (0)