Skip to content

Commit

Permalink
build(deps): Skip coverage by PR title (#1087)
Browse files Browse the repository at this point in the history
e0e2b34 updated the coverage action to be skipped when the
`dependencies` label is set, but in practice dependabot sets labels
after the PR is actually created, so the action can fire before the
label is present.

This change updates the coverage action to look at the PR title and skip
coverage when the title begins with `build(deps): `.
  • Loading branch information
olix0r authored Jun 16, 2021
1 parent d6d1708 commit e3d39f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
if: |
!contains(github.event.pull_request.labels.*.name, 'dependencies')
!startsWith(github.event.pull_request.title, 'build(deps): ')
name: codecov
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down

0 comments on commit e3d39f3

Please sign in to comment.