From 79f0db1d7c1aa8fc382849264e1928d3f6b70e33 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Tue, 16 Jan 2024 23:51:32 -0700 Subject: [PATCH] feat: support renovate bot (#63) * feat: support renovate bot * fix: update renovate bot token * fix: update renovate.json * fix: update renovate.json --- .github/workflows/renovatebot.yml | 18 ++++++++++++++++++ renovate.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/renovatebot.yml create mode 100644 renovate.json diff --git a/.github/workflows/renovatebot.yml b/.github/workflows/renovatebot.yml new file mode 100644 index 0000000..9ce0b57 --- /dev/null +++ b/.github/workflows/renovatebot.yml @@ -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 }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..4495f95 --- /dev/null +++ b/renovate.json @@ -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: (?.*)\\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 + } + ] + }