Skip to content

Commit 79f0db1

Browse files
authored
feat: support renovate bot (#63)
* feat: support renovate bot * fix: update renovate bot token * fix: update renovate.json * fix: update renovate.json
1 parent 8b46072 commit 79f0db1

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/renovatebot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Renovate
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
workflow_dispatch:
8+
9+
jobs:
10+
renovate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/[email protected]
15+
- name: Self-hosted Renovate
16+
uses: renovatebot/[email protected]
17+
with:
18+
token: ${{ secrets.CPP_LINTER_TOKEN }}

renovate.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"baseBranches": ["main"],
4+
"rebaseWhen": "behind-base-branch",
5+
"dependencyDashboard": false,
6+
"labels": ["dependencies"],
7+
"commitMessagePrefix": "",
8+
"commitMessageTopic": "{{depName}}",
9+
"regexManagers": [
10+
{
11+
"customType": "regex",
12+
"matchStrings": [
13+
"\\sappVersion: (?<currentValue>.*)\\s"
14+
],
15+
"datasourceTemplate": "github-releases",
16+
"depNameTemplate": "cpp-linter/clang-tools-static-binaries",
17+
"extractVersionTemplate": "^master-\\w*"
18+
}
19+
],
20+
"packageRules": [
21+
{
22+
"matchDatasources": ["github-releases"],
23+
"matchDepNames": ["cpp-linter/clang-tools-static-binaries"],
24+
"matchUpdateTypes": ["minor", "patch"],
25+
"automerge": true
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)