Add renovate action

This commit is contained in:
Marty Oehme 2025-06-23 11:16:47 +02:00
parent db96913779
commit 2a18eec93c
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 51 additions and 1 deletions

16
.github/renovate.json vendored Normal file
View file

@ -0,0 +1,16 @@
{
"onboarding": false,
"requireConfig": "optional",
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/)template$/"
],
"matchStrings": [
"version=(?<currentValue>.*) # renovate: datasource=(?<datasource>.*) depName=(?<depName>.*)"
],
"extractVersionTemplate": "^v?(?<version>.*)$"
}
]
}

View file

@ -8,7 +8,6 @@ on:
push:
paths:
- 'srcpkgs/**'
- '.github/**' # for easier debugging
jobs:
changedpkgs:

35
.github/workflows/renovate.yaml vendored Normal file
View file

@ -0,0 +1,35 @@
name: renovate
on:
schedule:
- cron: '0 * * * *'
push:
paths:
- '.github/**' # TODO: remove after debugging
env:
LOG_LEVEL: 'debug'
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: '${{ github.repository }}'
RENOVATE_PLATFORM: github
# RENOVATE_PLATFORM_COMMIT: true
# RENOVATE_BOT_NAME: 'breq'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: renovate package versions
uses: renovatebot/github-action@v43.0.1
with:
configurationFile: .github/renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
- name: Find updated package
run: |
#!/usr/bin/env bash
set -euxo pipefail
echo "pkgbuild=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} "*template" | head -1 | xargs dirname)" >> $GITHUB_ENV