Skip to content

Commit f41901a

Browse files
committed
Merge remote-tracking branch 'origin/main' into matifai/prdeploymnets
2 parents d3dfa35 + 844ef76 commit f41901a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
id: pr_number
4040
run: |
4141
set -euxo pipefail
42-
PR_NUMBER=$(gh pr view ${{ github.event.inputs.pr_number }} --json number | jq -r '.number')
42+
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
43+
PR_NUMBER=${{ github.event.inputs.pr_number }}"
44+
else
45+
PR_NUMBER=${{ github.event.issue.number }}"
4346
PR_TITLE=$(gh pr view $PR_NUMBER --json title | jq -r '.title')
4447
PR_BRANCH=$(gh pr view $PR_NUMBER --json headRefName | jq -r '.headRefName')
4548
echo "PR_URL=https://github.com/coder/coder/pull/$PR_NUMBER" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)