Skip to content

Commit d295cab

Browse files
authored
fix: Update deploy-pre-chatbot.yml
1 parent 6459e94 commit d295cab

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/deploy-pre-chatbot.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Handle Deployment Commands in PR Comments
1+
name: Handle Slash Commands in PR Comments
22

33
on:
44
issue_comment:
@@ -25,13 +25,14 @@ jobs:
2525
console.log("No valid command found.");
2626
return { valid: false };
2727
result-encoding: json
28+
result: 'steps.check_command.outputs.valid'
2829

29-
# Debug: Log the output of check_command
30+
# Step 2: Debug Command Check
3031
- name: Debug Command Check
3132
run: |
3233
echo "Valid command: ${{ steps.check_command.outputs.valid }}"
3334
34-
# Step 2: Get Branch from PR
35+
# Step 3: Extract PR Branch
3536
- name: Extract PR Branch
3637
if: steps.check_command.outputs.valid == 'true'
3738
id: pr_details
@@ -46,13 +47,13 @@ jobs:
4647
return pr.head.ref;
4748
result-encoding: string
4849

49-
# Debug: Log PR branch
50+
# Step 4: Debug PR Branch
5051
- name: Debug PR Branch
5152
if: steps.check_command.outputs.valid == 'true'
5253
run: |
5354
echo "Branch: ${{ steps.pr_details.outputs.result }}"
5455
55-
# Step 3: Trigger Deploy Workflow
56+
# Step 5: Trigger Deploy Workflow
5657
- name: Trigger Deploy Workflow
5758
if: steps.check_command.outputs.valid == 'true'
5859
uses: actions/github-script@v6
@@ -66,7 +67,7 @@ jobs:
6667
})
6768
console.log("Triggered deploy-pre workflow for branch:", "${{ steps.pr_details.outputs.result }}");
6869
69-
# Step 4: Post Confirmation Comment
70+
# Step 6: Post Confirmation Comment
7071
- name: Post Comment to PR
7172
if: steps.check_command.outputs.valid == 'true'
7273
uses: actions/github-script@v6

0 commit comments

Comments
 (0)