Skip to content

Commit

Permalink
Add continue-on-error for next bundle workflow for outside contribu…
Browse files Browse the repository at this point in the history
…tors (#1770)

* Add `continue-on-error` for next bundle workflow for outside contributors

* Don't run bundle analysis on `main`
  • Loading branch information
blakewilson authored Jan 30, 2024
1 parent 37f8959 commit 6fad7d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nextjs-bundle-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ name: 'Next.js Bundle Analysis'

on:
pull_request:
branches-ignore:
- 'main'
push:
branches:
- 'canary'
Expand Down Expand Up @@ -124,13 +126,15 @@ jobs:

- name: Create Comment
uses: peter-evans/create-or-update-comment@v2
continue-on-error: true
if: success() && github.event.number && steps.fc.outputs.comment-id == 0
with:
issue-number: ${{ github.event.number }}
body: ${{ steps.get-comment-body.outputs.body }}

- name: Update Comment
uses: peter-evans/create-or-update-comment@v2
continue-on-error: true
if: success() && github.event.number && steps.fc.outputs.comment-id != 0
with:
issue-number: ${{ github.event.number }}
Expand Down

0 comments on commit 6fad7d0

Please sign in to comment.