Skip to content

Commit

Permalink
Skip actions triggered by Dependabot (#1057)
Browse files Browse the repository at this point in the history
Account for Dependabot's missing write permissions.
  • Loading branch information
JanCBrammer committed Nov 29, 2022
1 parent 16a8c45 commit 27255b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
linting:
if: github.event.pull_request
if: github.event.pull_request && (github.triggering_actor != 'dependabot[bot]')
runs-on: ubuntu-latest
env:
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
run: RAILS_ENV=test bundle exec rspec --exclude-pattern spec/{features}/**/*_spec.rb

- name: coverage rspec unit
if: github.event.pull_request && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) # don't run on PRs from forks because of missing write permission: https://github.com/orgs/community/discussions/26829
if: github.event.pull_request && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) && (github.triggering_actor != 'dependabot[bot]') # don't run on PRs from forks because of missing write permission: https://github.com/orgs/community/discussions/26829
uses: zgosalvez/github-actions-report-lcov@v1
with:
coverage-files: coverage/lcov/${{ github.event.repository.name }}.lcov
Expand Down

0 comments on commit 27255b7

Please sign in to comment.