mirror of
https://code.forgejo.org/actions/renovate-config.git
synced 2025-07-17 19:58:19 +02:00
feat: initial config
This commit is contained in:
parent
81d1ef8308
commit
06801d72cc
5 changed files with 54 additions and 2 deletions
27
.forgejo/workflows/build.yml
Normal file
27
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/forgejo-contrib/renovate:38.142.7@sha256:8327ee1726142dcc504d349d84c0e7f41656867e598ea7669bb7cf23786610a2
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
file:
|
||||
- default.json
|
||||
- renovate.json
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
- run: node bin/validator.cjs ${{ matrix.file }}
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
RENOVATE_PLATFORM: gitea
|
||||
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
@ -1,3 +1,6 @@
|
|||
# renovate-config
|
||||
# Renovate configurations
|
||||
|
||||
shared organization config for renovate
|
||||
This repo contains configuration files for Renovate.
|
||||
|
||||
The `default.json` will be detected as onboarding preset by Renovate when enabling it on a new repo.
|
||||
The other files are shared presets and are used transitive by the `default.json`.
|
||||
|
|
14
bin/validator.cjs
Normal file
14
bin/validator.cjs
Normal file
|
@ -0,0 +1,14 @@
|
|||
const { GlobalConfig } = require('/usr/local/renovate/dist/config/global');
|
||||
const { setPlatformApi } = require('/usr/local/renovate/dist/modules/platform');
|
||||
|
||||
// set required global config
|
||||
GlobalConfig.set({
|
||||
platform: 'gitea',
|
||||
endpoint: process.env.RENOVATE_ENDPOINT,
|
||||
});
|
||||
|
||||
// set platform api
|
||||
setPlatformApi('gitea');
|
||||
|
||||
// run config validator
|
||||
require('/usr/local/renovate/dist/config-validator.js');
|
4
default.json
Normal file
4
default.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>forgejo/renovate-config"]
|
||||
}
|
4
renovate.json
Normal file
4
renovate.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>forgejo/renovate-config//renovate.json"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue