Skip to content

Commit 2f779c1

Browse files
committed
[CI] Allow codecov comment upload failures
To fix direct upload to the main repo (not from fork) with lack of `write` permissions (e.g. in case of Dependabot submissions)
1 parent 73c34b5 commit 2f779c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ jobs:
396396
name: cov-report
397397
path: 'cov-report'
398398
- name: Comment coverage report link
399-
# TODO: Support PRs from forks too
400-
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }}
399+
# TODO: Support PRs from forks and handle cases with insufficient write permissions
400+
continue-on-error: true
401401
uses: peter-evans/create-or-update-comment@v4
402402
with:
403403
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)