Skip to content

Commit

Permalink
Exclude Dependabot PRs from versioning and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
RJFelix committed Oct 31, 2023
1 parent 8ce8f12 commit f1e5b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-merge-to-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
merged:
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && !(startsWith(github.event.pull_request.head.ref, 'dependabot/'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pr-approved.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
alpha:
if: github.event.review.state == 'approved' && !(startsWith(github.event.pull_request.head.ref, 'release/'))
if: github.event.review.state == 'approved' && !(startsWith(github.event.pull_request.head.ref, 'release/')) && !(startsWith(github.event.pull_request.head.ref, 'dependabot/'))
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit f1e5b56

Please sign in to comment.