Skip to content

Commit

Permalink
Finetuning Dependabot (#328)
Browse files Browse the repository at this point in the history
* Gems wöchentlich auf Updates prüfen und Bootstrap nur innerhalb 5.1.x oder ab 6.x aktualisieren

* Dependabot PRs für Bootstrap nie automatisch annehmen
  • Loading branch information
nbennke authored Oct 19, 2023
1 parent 0bb95cc commit 514753a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "monthly"

interval: "weekly"
ignore:
- dependency-name: "bootstrap"
versions: [">= 5.2", "< 6"]

- package-ecosystem: "npm"
directory: "/"
schedule:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
if: ${{ ! contains(steps.metadata.outputs.dependency-names, 'bootstrap') }}
run: gh pr merge --auto --rebase --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit 514753a

Please sign in to comment.