File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ # Basic `dependabot.yml` file with
2+ # minimum configuration for three package managers
3+
4+ version : 2
5+ updates :
6+ # Enable version updates for npm
7+ - package-ecosystem : " npm"
8+ # Look for `package.json` and `lock` files in the `root` directory
9+ directory : " /"
10+ # Check the npm registry for updates every day (weekdays)
11+ schedule :
12+ interval : " daily"
13+ groups :
14+ default :
15+ patterns :
16+ - " *"
17+
18+ # Enable version updates for Docker
19+ - package-ecosystem : " docker"
20+ # Look for a `Dockerfile` in the `root` directory
21+ directory : " /"
22+ # Check for updates once a week
23+ schedule :
24+ interval : " weekly"
25+
26+ # Enable version updates for GitHub Actions
27+ - package-ecosystem : " github-actions"
28+ # Workflow files stored in the default location of `.github/workflows`
29+ # You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
30+ directory : " /"
31+ schedule :
32+ interval : " weekly"
33+ groups :
34+ default :
35+ patterns :
36+ - " *"
Original file line number Diff line number Diff line change 1+ name : Dependabot auto-merge
2+ on : pull_request
3+
4+ permissions :
5+ contents : write
6+ pull-requests : write
7+
8+ jobs :
9+ dependabot :
10+ runs-on : ubuntu-latest
11+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'FieldDB/AuthenticationWebService'
12+ steps :
13+ - name : Dependabot metadata
14+ id : metadata
15+ uses : dependabot/fetch-metadata@v2
16+ with :
17+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
18+ - name : Enable auto-merge for Dependabot PRs
19+ # if: contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'
20+ run : gh pr merge --auto --merge "$PR_URL"
21+ env :
22+ PR_URL : ${{github.event.pull_request.html_url}}
23+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments