We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3dfa35 + 844ef76 commit f41901aCopy full SHA for f41901a
.github/workflows/pr-deploy.yaml
@@ -39,7 +39,10 @@ jobs:
39
id: pr_number
40
run: |
41
set -euxo pipefail
42
- PR_NUMBER=$(gh pr view ${{ github.event.inputs.pr_number }} --json number | jq -r '.number')
+ if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
43
+ PR_NUMBER=${{ github.event.inputs.pr_number }}"
44
+ else
45
+ PR_NUMBER=${{ github.event.issue.number }}"
46
PR_TITLE=$(gh pr view $PR_NUMBER --json title | jq -r '.title')
47
PR_BRANCH=$(gh pr view $PR_NUMBER --json headRefName | jq -r '.headRefName')
48
echo "PR_URL=https://github.com/coder/coder/pull/$PR_NUMBER" >> $GITHUB_OUTPUT
0 commit comments