Skip to content

Commit 819b3bb

Browse files
committed
fix(deploy-pre): Change on workflow
Changes to try to fix step 3
1 parent b73bc09 commit 819b3bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
uses: actions/github-script@v6
3636
with:
3737
script: |
38-
const pr = context.payload.issue.pull_request;
39-
if (!pr) {
38+
const issue = context.payload.issue;
39+
if (!issue.pull_request) {
4040
throw new Error("This command can only be used on a pull request.");
4141
}
42+
const pr = issue.pull_request;
4243
console.log("PR branch:", pr.head.ref);
4344
return { branch: pr.head.ref };
4445
result-encoding: json

0 commit comments

Comments
 (0)