Skip to content

Commit

Permalink
feat: support renovate bot (#63)
Browse files Browse the repository at this point in the history
* feat: support renovate bot

* fix: update renovate bot token

* fix: update renovate.json

* fix: update renovate.json
  • Loading branch information
shenxianpeng authored Jan 17, 2024
1 parent 8b46072 commit 79f0db1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/renovatebot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Renovate

on:
push:
branches:
- "main"
workflow_dispatch:

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.6.0
- name: Self-hosted Renovate
uses: renovatebot/github-action@v39.2.4
with:
token: ${{ secrets.CPP_LINTER_TOKEN }}
28 changes: 28 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"baseBranches": ["main"],
"rebaseWhen": "behind-base-branch",
"dependencyDashboard": false,
"labels": ["dependencies"],
"commitMessagePrefix": "",
"commitMessageTopic": "{{depName}}",
"regexManagers": [
{
"customType": "regex",
"matchStrings": [
"\\sappVersion: (?<currentValue>.*)\\s"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "cpp-linter/clang-tools-static-binaries",
"extractVersionTemplate": "^master-\\w*"
}
],
"packageRules": [
{
"matchDatasources": ["github-releases"],
"matchDepNames": ["cpp-linter/clang-tools-static-binaries"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
]
}

0 comments on commit 79f0db1

Please sign in to comment.