Skip to content

Commit ca18158

Browse files
authored
Update deploy-pre-chatbot.yml
1 parent 389fc4b commit ca18158

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,17 @@ jobs:
4949
workflow_id: "deploy-pre.yml",
5050
ref: "${{ steps.pr_details.outputs.result }}"
5151
})
52+
53+
# Step 4: Post Confirmation Comment
54+
- name: Post Comment to PR
55+
if: steps.check_command.outputs.valid == 'true'
56+
uses: actions/github-script@v6
57+
with:
58+
script: |
59+
const issue_number = context.payload.issue.number;
60+
github.rest.issues.createComment({
61+
owner: context.repo.owner,
62+
repo: context.repo.repo,
63+
issue_number: issue_number,
64+
body: `✅ Workflow \`deploy-pre.yml\` has been triggered for branch \`${{ steps.pr_details.outputs.result }}\`.`
65+
});

0 commit comments

Comments
 (0)