Skip to content

Commit eee4f83

Browse files
authored
ci: fix wrong trigger pr-deploy.yaml (#8151)
1 parent 1ffc805 commit eee4f83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222

2323
jobs:
2424
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'
2626
outputs:
2727
PR_NUMBER: ${{ steps.pr_number.outputs.PR_NUMBER }}
2828
PR_TITLE: ${{ steps.pr_number.outputs.PR_TITLE }}
@@ -37,9 +37,9 @@ jobs:
3737
id: pr_number
3838
run: |
3939
set -euxo pipefail
40-
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
40+
if [[ ${{ github.event_name }} == "workflow_dispatch" ]]; then
4141
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')
4343
else
4444
PR_NUMBER=${{ github.event.issue.number }}
4545
PR_TITLE=${{ github.event.issue.title }}

0 commit comments

Comments
 (0)