Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

fix(ci): read workflow_dispatch PR number from inputs.pr in PR auto-deploy workflow (#5380)

Ludycfe90cff66bf
diff --git a/.github/config/repo_devs.json b/.github/config/repo_devs.json
index 9632402605..8b0bb97a81 100644
--- a/.github/config/repo_devs.json
+++ b/.github/config/repo_devs.json
@@ -13,6 +13,8 @@
"reecebrowne",
"DarioGii",
"ConnorYoh",
- "EthanHealy01"
+ "EthanHealy01",
+ "jbrunton96",
+ "balazs-szucs"
]
}
diff --git a/.github/workflows/PR-Auto-Deploy-V2.yml b/.github/workflows/PR-Auto-Deploy-V2.yml
index 8d9f837f69..9f30b372fc 100644
--- a/.github/workflows/PR-Auto-Deploy-V2.yml
+++ b/.github/workflows/PR-Auto-Deploy-V2.yml
@@ -11,6 +11,10 @@ on:
allow_fork:
description: "Allow deploying fork PR?"
required: false
+ type: choice
+ options:
+ - "true"
+ - "false"
default: "false"
permissions:
@@ -42,7 +46,7 @@ jobs:
script: |
const { owner, repo } = context.repo;
let prNumber = context.eventName === 'workflow_dispatch'
- ? parseInt(process.env.INPUT_PR, 10)
+ ? parseInt(context.payload.inputs.pr, 10)
: context.payload.number;
if (!Number.isInteger(prNumber)) { core.setFailed('Invalid PR number'); return; }