Skip to content

Commit c0492cd

Browse files
authored
Fix update-plugins-repo-refs.yaml to support specifying a PR for auto-publishing. (#2283)
Assisted-by: Cursor Signed-off-by: David Festal <dfestal@redhat.com>
1 parent d1ec550 commit c0492cd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/update-plugins-repo-refs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,17 @@ jobs:
231231
steps:
232232
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
233233
id: collect
234+
env:
235+
INPUT_PR_TO_UPDATE: ${{ inputs.pr-to-update }}
234236
with:
235237
script: |
238+
const prToUpdate = core.getInput('pr_to_update');
239+
if (prToUpdate) {
240+
const numbers = [Number(prToUpdate)];
241+
core.setOutput('pr-numbers', JSON.stringify(numbers));
242+
core.info(`Using specified PR for auto-publish: ${numbers}`);
243+
return;
244+
}
236245
const run = await github.rest.actions.getWorkflowRun({
237246
owner: context.repo.owner,
238247
repo: context.repo.repo,

0 commit comments

Comments
 (0)