Skip to content

Commit f6321c6

Browse files
committed
fix: gh env var outside context
1 parent 03f44c2 commit f6321c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ jobs:
6060
uses: actions/github-script@v6
6161
with:
6262
script: |
63-
const branch = steps.pr_details.outputs.branch;
6463
github.rest.actions.createWorkflowDispatch({
6564
owner: context.repo.owner,
6665
repo: context.repo.repo,
6766
workflow_id: "deploy-pre.yml",
68-
ref: branch,
67+
ref: steps.pr_details.outputs.branch,
6968
});
70-
console.log("Triggered deploy-pre workflow for branch:", branch);
7169
# Step 6: Post Confirmation Comment
7270
- name: Post Comment to PR
7371
if: steps.check_command.outputs.valid == 'true'

0 commit comments

Comments
 (0)