Skip to content

Commit

Permalink
Merge pull request #206 from aldbr/main_fix_dependabot_commitlint
Browse files Browse the repository at this point in the history
ci(dependabot): make sure commitlint is not triggered for dependabot PRs
  • Loading branch information
aldbr authored Aug 27, 2024
2 parents f7f6ab7 + 56ca794 commit c265a2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ name: Commit Lint
on:
push:
branches-ignore:
- dependabot/**
- release-please-**
pull_request:
branches-ignore:
- dependabot/**
- release-please-**

jobs:
commitlint:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web'
if: github.actor != 'dependabot[bot]' && (github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web')
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -32,4 +30,4 @@ jobs:

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit c265a2e

Please sign in to comment.