renovatebot: configure

This commit is contained in:
ohdearaugustin 2022-02-14 23:33:55 +01:00
parent a19550adbf
commit fe6d47030f
2 changed files with 37 additions and 5 deletions

37
.github/renovate.json vendored
View file

@ -1,7 +1,38 @@
{ {
"extends": ["config:base"]",
"baseBranches": ["main"], "baseBranches": ["main"],
"branchPrefix": "renovateaction", "username": "renovate-release",
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
"branchPrefix": "renovateaction/",
"onboarding": false,
"extends": ["config:base", ":rebaseStalePrs"], "extends": ["config:base", ":rebaseStalePrs"],
"enabledManagers": ["dockerfile", "go", "github-actions"] "ignorePresets": [":prHourlyLimit2"],
"enabledManagers": ["dockerfile", "gomod", "github-actions","regex" ],
"includeForks": true,
"repositories": ["juanfont/headscale"],
"platform": "github",
"packageRules": [
{
"matchDatasources": ["go"],
"groupName": "Go modules",
"groupSlug": "gomod",
"separateMajorMinor": false
},
{
"matchDatasources": ["docker"],
"groupName": "Dockerfiles",
"groupSlug": "dockerfiles"
}
],
"regexManagers": [
{
"fileMatch": [
".github/workflows/.*.yml$"
],
"matchStrings": [
"\\s*go-version:\\s*\"?(?<currentValue>.*?)\"?\\n"
],
"datasourceTemplate": "golang-version",
"depNameTemplate": "actions/go-version"
}
]
} }

View file

@ -19,8 +19,9 @@ jobs:
uses: actions/checkout@v2.0.0 uses: actions/checkout@v2.0.0
- name: Self-hosted Renovate - name: Self-hosted Renovate
uses: renovatebot/github-action@v31.81.2 uses: renovatebot/github-action@v31.81.3
with: with:
configurationFile: .github/renovate.json configurationFile: .github/renovate.json
token: "x-access-token:${{ steps.get_token.outputs.app_token }}" token: "x-access-token:${{ steps.get_token.outputs.app_token }}"
onboarding: false # env:
# LOG_LEVEL: "debug"