From d6480f65d76034115465ac548a1530b4912145a2 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 17 Jan 2024 05:57:19 +0000 Subject: [PATCH 1/4] feat: support renovate bot --- .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..5ee2371 --- /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.RENOVATE_TOKEN }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..f12738e --- /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": [ + "ARG PORTAINER_VERSION=[\"']?(?.+?)[\"']?\\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 + } + ] + } From 429d2b1f3481c90ab56d551f06a628fe317df596 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 17 Jan 2024 06:01:23 +0000 Subject: [PATCH 2/4] fix: update renovate bot token --- .github/workflows/renovatebot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/renovatebot.yml b/.github/workflows/renovatebot.yml index 5ee2371..9ce0b57 100644 --- a/.github/workflows/renovatebot.yml +++ b/.github/workflows/renovatebot.yml @@ -15,4 +15,4 @@ jobs: - name: Self-hosted Renovate uses: renovatebot/github-action@v39.2.4 with: - token: ${{ secrets.RENOVATE_TOKEN }} + token: ${{ secrets.CPP_LINTER_TOKEN }} From 68c4e3549407a3d72acd390b4304b32f71381ea3 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 17 Jan 2024 06:41:20 +0000 Subject: [PATCH 3/4] fix: update renovate.json --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index f12738e..438b613 100644 --- a/renovate.json +++ b/renovate.json @@ -10,7 +10,7 @@ { "customType": "regex", "matchStrings": [ - "ARG PORTAINER_VERSION=[\"']?(?.+?)[\"']?\\s+" + "\\sappVersion: (?.*)\\s" ], "datasourceTemplate": "github-releases", "depNameTemplate": "cpp-linter/clang-tools-static-binaries", From d4dc84417f16f1748ebc4f4bbcfc9e75583aa6e9 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Wed, 17 Jan 2024 06:45:53 +0000 Subject: [PATCH 4/4] fix: update renovate.json --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 438b613..4495f95 100644 --- a/renovate.json +++ b/renovate.json @@ -14,7 +14,7 @@ ], "datasourceTemplate": "github-releases", "depNameTemplate": "cpp-linter/clang-tools-static-binaries", - "extractVersionTemplate": "^master-\w*" + "extractVersionTemplate": "^master-\\w*" } ], "packageRules": [