We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c7d8ee commit 26264bdCopy full SHA for 26264bd
.github/workflows/pr-deploy.yaml
@@ -37,11 +37,11 @@ jobs:
37
- name: Get PR number, title, and branch name
38
id: pr_info
39
run: |
40
- set -exo pipefail
+ set -euxo pipefail
41
if [[ ${{ github.event_name }} == "workflow_dispatch" ]]; then
42
- PR_NUMBER=${{ github.event.inputs.pr_number }}"
+ PR_NUMBER=${{ github.event.inputs.pr_number }}
43
else
44
- PR_NUMBER=${{ github.event.issue.number }}"
+ PR_NUMBER=${{ github.event.issue.number }}
45
fi
46
PR_TITLE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/coder/coder/pulls/$PR_NUMBER | jq -r '.title')
47
PR_BRANCH=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/coder/coder/pulls/$PR_NUMBER | jq -r '.head.ref')
0 commit comments