Created
January 23, 2025 18:25
-
-
Save jeffersongoncalves/f6f0b6f6e92a4184c68caeee541357b7 to your computer and use it in GitHub Desktop.
Habilitando o dependabot.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dependabot-auto-merge | |
on: pull_request_target | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Auto-merge Dependabot PRs for semver-minor updates | |
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Auto-merge Dependabot PRs for semver-patch updates | |
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic set up for three package managers | |
version: 2 | |
updates: | |
# Maintain dependencies for GitHub Actions | |
- package-ecosystem: "github-actions" | |
directory: "/" | |
schedule: | |
interval: "weekly" | |
groups: | |
actions-deps: | |
patterns: | |
- "*" | |
# Maintain dependencies for npm | |
- package-ecosystem: "npm" | |
directories: | |
- "/" | |
schedule: | |
interval: "weekly" | |
groups: | |
dev-deps: | |
dependency-type: "development" | |
prod-deps: | |
dependency-type: "production" | |
# Maintain dependencies for Composer | |
- package-ecosystem: "composer" | |
directories: | |
- "/" | |
schedule: | |
interval: "weekly" | |
#ignore: | |
# - dependency-name: "stepanenko3/nova-cards" | |
groups: | |
dev-deps: | |
dependency-type: "development" | |
prod-deps: | |
dependency-type: "production" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment