Skip to content

Commit d40b700

Browse files
committed
Update conditions
1 parent 0b1f538 commit d40b700

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ jobs:
2929
run: |
3030
echo "comment_message=This pull request is being automatically built with GitHub Action + Netlify. To see the status of your deployment, click below." >> $GITHUB_ENV
3131
- name: Find Comment
32-
if: ${{ github.event_name }} == 'pull_request'
32+
if: github.event_name == 'pull_request'
3333
uses: peter-evans/find-comment@v1
3434
id: fc
3535
with:
3636
issue-number: '${{ github.event.number }}'
3737
comment-author: 'github-actions[bot]'
3838
body-includes: '${{ env.comment_message }}'
3939
- name: Create comment
40-
if: ${{ github.event_name }} == 'pull_request' && steps.fc.outputs.comment-id == ''
40+
if: |
41+
github.event_name == 'pull_request'
42+
&& steps.fc.outputs.comment-id == ''
4143
uses: peter-evans/create-or-update-comment@v1
4244
with:
4345
issue-number: ${{ github.event.number }}
@@ -46,7 +48,9 @@ jobs:
4648
🚧 Deployment in progress for git commit SHA: ${{ github.event.pull_request.head.sha }}
4749
4850
- name: Update comment
49-
if: ${{ github.event_name }} == 'pull_request' && steps.fc.outputs.comment-id != ''
51+
if: |
52+
github.event_name == 'pull_request'
53+
&& steps.fc.outputs.comment-id != ''
5054
uses: peter-evans/create-or-update-comment@v1
5155
with:
5256
comment-id: ${{ steps.fc.outputs.comment-id }}

0 commit comments

Comments
 (0)