feat: renovate
All checks were successful
Check / check (push) Successful in 51s

This commit is contained in:
trev 2025-05-14 11:36:54 -04:00
parent 8158c195f5
commit 084010e38c
5 changed files with 52 additions and 3 deletions

7
.gitea/renovate.json Normal file
View File

@ -0,0 +1,7 @@
{
"extends": ["config:recommended"],
"platform": "gitea",
"nix": {
"enabled": true
}
}

View File

@ -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 }}

View File

@ -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

7
.github/renovate.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"extends": ["config:recommended"],
"platform": "github",
"nix": {
"enabled": true
}
}

19
.github/workflows/renovate.yaml vendored Normal file
View File

@ -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 }}