copy dependabot.yml and maven.yml from github example
This commit is contained in:
parent
877746e6c1
commit
cbf4fd073a
2 changed files with 4 additions and 17 deletions
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
|
|
@ -31,12 +31,7 @@ updates:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
|
||||||
# branch - dependabot testing
|
# branch - dependabot testing
|
||||||
- package-ecosystem: "maven"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: /
|
||||||
# labels:
|
|
||||||
# - "dependencies"
|
|
||||||
# - "v1.x"
|
|
||||||
target-branch: "dependabot-testing-from-github"
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
time: "04:10"
|
|
||||||
|
|
|
||||||
12
.github/workflows/maven.yml
vendored
12
.github/workflows/maven.yml
vendored
|
|
@ -14,18 +14,10 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
dependabot:
|
dependabot:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Dependabot metadata
|
|
||||||
id: dependabot-metadata
|
|
||||||
uses: dependabot/fetch-metadata@v2
|
|
||||||
with:
|
|
||||||
alert-lookup: true
|
|
||||||
github-token: "${{ secrets.PAT_TOKEN }}"
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
#if: ${{steps.dependabot-metadata.outputs.cvss == 'true' || (steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor')}}
|
|
||||||
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'
|
|
||||||
run: gh pr merge --auto --merge "$PR_URL"
|
run: gh pr merge --auto --merge "$PR_URL"
|
||||||
env:
|
env:
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
Loading…
Reference in a new issue