ci: use renovate github action (#1009)

Drew Smirnoff created

Change summary

.github/workflows/renovate.yml | 20 ++++++++++++++++++++
renovate.json                  |  7 ++++++-
2 files changed, 26 insertions(+), 1 deletion(-)

Detailed changes

.github/workflows/renovate.yml 🔗

@@ -0,0 +1,20 @@
+name: Renovate
+on:
+  schedule:
+    - cron: "0 * * * *"
+  workflow_dispatch:
+jobs:
+  renovate:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v6
+        with:
+          fetch-depth: 0
+      - name: Run Renovate
+        uses: renovatebot/github-action@v46.1.10
+        with:
+          token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
+          configurationFile: renovate.json
+        env:
+          RENOVATE_REPOSITORIES: floatpane/matcha

renovate.json 🔗

@@ -4,9 +4,14 @@
   "postUpdateOptions": ["gomodTidy"],
   "packageRules": [
     {
+      "matchManagers": ["gomod"],
       "matchDepNames": ["go"],
-      "groupName": "go",
       "rangeStrategy": "bump"
+    },
+    {
+      "matchManagers": ["github-actions"],
+      "matchDepNames": ["go"],
+      "groupName": "go"
     }
   ]
 }