From 0208fcdca0ec2d04db225f06e182c4508f94f78a Mon Sep 17 00:00:00 2001 From: justusbunsi Date: Sat, 9 Sep 2023 14:30:51 +0200 Subject: [PATCH 1/2] Ensure Renovate updates itself regularly The `github-actions` manager should also work for Gitea Actions. It is the same syntax. As per Discord conversation, unpin the Docker digest for Renovate. Signed-off-by: justusbunsi --- .gitea/workflows/renovate.yml | 9 +-------- README.md | 1 + renovate.json | 8 ++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index 5c97f71..41af2c8 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -10,7 +10,7 @@ on: jobs: renovate: runs-on: ubuntu-latest - container: ghcr.io/renovatebot/renovate:36.79.1@sha256:af329e14261bfc17dc31b63376fb45bbf2aea46d6683d3b4fbb567118d6032e4 + container: ghcr.io/renovatebot/renovate:36.79.1 steps: - uses: https://github.com/actions/checkout@v3 - run: renovate @@ -22,10 +22,3 @@ jobs: GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }} HUB_DOCKER_COM_USER: ${{ secrets.HUB_DOCKER_COM_USER }} HUB_DOCKER_COM_TOKEN: ${{ secrets.HUB_DOCKER_COM_TOKEN }} - # - name: Install libs - # run: apt-get update && apt-get install -y sudo lsb-release systemd docker.io - # - name: Self-hosted Renovate - # uses: renovatebot/github-action@v39.0.5 - # with: - # # configurationFile: default.json - # token: ${{ secrets.RENOVATE_TOKEN }} diff --git a/README.md b/README.md index 1d7aed7..72be749 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,6 @@ To host the renovate config. - `config.js` holds the self-hosted Renovate configuration so that Renovate knows what and how it should process. +- `renovate.json` in this repository ensures to receive Renovate updates. - `default.json` holds the basic config for all repositories. It extends the presets by the renovate project defined in `renovate-schema.json`. - Each repository can extend/alter this config by adding a `renovate.json` file to the root of the repository. diff --git a/renovate.json b/renovate.json index 1bb46f3..2bd7480 100644 --- a/renovate.json +++ b/renovate.json @@ -2,6 +2,14 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["gitea/renovate-config"], "dependencyDashboard": true, + "enabledManagers": [ + "github-actions" + ], + "github-actions": { + "fileMatch": [ + "^\\.gitea/workflows)/[^/]+\\.ya?ml$" + ] + }, "packageRules": [ { "description": "use fix scope for renovate updates", -- 2.40.1 From 6180a526beb0ecf9758da31f1169d8e724141d21 Mon Sep 17 00:00:00 2001 From: justusbunsi Date: Sat, 9 Sep 2023 14:34:50 +0200 Subject: [PATCH 2/2] Fix fileMatch Signed-off-by: justusbunsi --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 2bd7480..0516632 100644 --- a/renovate.json +++ b/renovate.json @@ -7,7 +7,7 @@ ], "github-actions": { "fileMatch": [ - "^\\.gitea/workflows)/[^/]+\\.ya?ml$" + "^\\.gitea/workflows/renovate\\.yml$" ] }, "packageRules": [ -- 2.40.1