Skip to content

Commit 2f65ac1

Browse files
committed
Fix Devin workflow dispatch input
1 parent c3194db commit 2f65ac1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/devin-review.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
- name: Resolve pull request context
2626
id: pr
2727
uses: actions/github-script@v8
28+
env:
29+
WORKFLOW_PR_NUMBER: ${{ inputs.pr_number }}
2830
with:
2931
script: |
3032
const prNumber = context.eventName === 'workflow_dispatch'
31-
? Number(core.getInput('pr_number'))
33+
? Number(process.env.WORKFLOW_PR_NUMBER)
3234
: context.payload.pull_request.number;
3335
3436
if (!Number.isInteger(prNumber) || prNumber <= 0) {

0 commit comments

Comments
 (0)