File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ concurrency:
22
22
23
23
jobs :
24
24
pr_commented :
25
- if : ${{ github.event.issue.pull_request }} && contains(github.event.comment.body, '/deploy-pr') && github.event.comment.author_association == 'MEMBER' || github.event_name == 'workflow_dispatch'
25
+ if : github.event_name == 'issue_comment' && contains(github.event.comment.body, '/deploy-pr') && github.event.comment.author_association == 'MEMBER' || github.event_name == 'workflow_dispatch'
26
26
outputs :
27
27
PR_NUMBER : ${{ steps.pr_number.outputs.PR_NUMBER }}
28
28
PR_TITLE : ${{ steps.pr_number.outputs.PR_TITLE }}
37
37
id : pr_number
38
38
run : |
39
39
set -euxo pipefail
40
- if [[ ${{ github.event_name }} == ' workflow_dispatch' ]]; then
40
+ if [[ ${{ github.event_name }} == " workflow_dispatch" ]]; then
41
41
PR_NUMBER=${{ github.event.inputs.pr_number }}
42
- PR_TITLE=$(curl -sSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/coder/coder/pulls/$PR_NUMBER | jq -r '.title')
42
+ PR_TITLE=$(curl -sSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" " https://api.github.com/repos/coder/coder/pulls/$PR_NUMBER" | jq -r '.title')
43
43
else
44
44
PR_NUMBER=${{ github.event.issue.number }}
45
45
PR_TITLE=${{ github.event.issue.title }}
You can’t perform that action at this time.
0 commit comments