Skip to content

Commit

Permalink
Add conditional for comment steps
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis authored Aug 2, 2023
1 parent 086c936 commit 8d52a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,14 @@ jobs:
- name: Find SWA Comment
uses: peter-evans/find-comment@v2
id: fc
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Azure Static Web Apps:'
direction: last
- name: Update SWA Comment
if: steps.fc.outputs.comment-id != ''
if: github.event_name == 'pull_request' && steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
Expand Down

0 comments on commit 8d52a2e

Please sign in to comment.