|
|
|
|
@ -5,7 +5,7 @@ on:
|
|
|
|
|
types: [created] |
|
|
|
|
workflow_dispatch: |
|
|
|
|
inputs: |
|
|
|
|
pull_request_id: |
|
|
|
|
pr_number: |
|
|
|
|
required: true |
|
|
|
|
type: string |
|
|
|
|
description: "The number of the PR for which to deploy a review app. Note: this is NOT the ticket number" |
|
|
|
|
@ -26,7 +26,7 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
script: | |
|
|
|
|
if (context.eventName === 'workflow_dispatch') { |
|
|
|
|
core.setOutput('pr_number', '${{ inputs.pull_request_id }}'); |
|
|
|
|
core.setOutput('pr_number', '${{ inputs.pr_number }}'); |
|
|
|
|
} else { |
|
|
|
|
core.setOutput('pr_number', context.issue.number.toString()); |
|
|
|
|
} |
|
|
|
|
|