From 084010e38c99343c0f803a1e1bfe63b7f073c351 Mon Sep 17 00:00:00 2001 From: trev Date: Wed, 14 May 2025 11:36:54 -0400 Subject: [PATCH] feat: renovate --- .gitea/renovate.json | 7 +++++++ .gitea/workflows/renovate.yaml | 19 +++++++++++++++++++ .gitea/workflows/update.yaml | 3 --- .github/renovate.json | 7 +++++++ .github/workflows/renovate.yaml | 19 +++++++++++++++++++ 5 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 .gitea/renovate.json create mode 100644 .gitea/workflows/renovate.yaml create mode 100644 .github/renovate.json create mode 100644 .github/workflows/renovate.yaml diff --git a/.gitea/renovate.json b/.gitea/renovate.json new file mode 100644 index 0000000..b04e039 --- /dev/null +++ b/.gitea/renovate.json @@ -0,0 +1,7 @@ +{ + "extends": ["config:recommended"], + "platform": "gitea", + "nix": { + "enabled": true + } +} diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..7887b63 --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,19 @@ +name: Renovate + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Renovate + uses: renovatebot/github-action@v42.0.1 + with: + configurationFile: .gitea/renovate.json + token: ${{ secrets.RENOVATE_TOKEN }} diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index fffdd72..9270e46 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -43,7 +43,6 @@ jobs: REPO_OWNER_SLASH_NAME="${{ gitea.repository }}" if ! git ls-remote --exit-code origin update; then - git push origin update --force PR_RESPONSE=$(curl -s -X POST -H "Authorization: token $PAT" \ @@ -59,7 +58,5 @@ jobs: "https://$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls/$PR_NUMBER/merge" else - git push origin update --force - fi diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..f381cb7 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,7 @@ +{ + "extends": ["config:recommended"], + "platform": "github", + "nix": { + "enabled": true + } +} diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml new file mode 100644 index 0000000..73943a1 --- /dev/null +++ b/.github/workflows/renovate.yaml @@ -0,0 +1,19 @@ +name: Renovate + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Renovate + uses: renovatebot/github-action@v42.0.1 + with: + configurationFile: .github/renovate.json + token: ${{ secrets.RENOVATE_TOKEN }}