Add renovate action
This commit is contained in:
parent
db96913779
commit
2a18eec93c
3 changed files with 51 additions and 1 deletions
16
.github/renovate.json
vendored
Normal file
16
.github/renovate.json
vendored
Normal 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>.*)$"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
.github/workflows/build.yaml
vendored
1
.github/workflows/build.yaml
vendored
|
|
@ -8,7 +8,6 @@ on:
|
|||
push:
|
||||
paths:
|
||||
- 'srcpkgs/**'
|
||||
- '.github/**' # for easier debugging
|
||||
|
||||
jobs:
|
||||
changedpkgs:
|
||||
|
|
|
|||
35
.github/workflows/renovate.yaml
vendored
Normal file
35
.github/workflows/renovate.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue