This commit is contained in:
parent
1d57dd628f
commit
e437de6298
1 changed files with 44 additions and 31 deletions
|
@ -1,34 +1,47 @@
|
||||||
|
---
|
||||||
|
name: Run Renovate
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
dryRun:
|
||||||
|
description: "Dry-Run"
|
||||||
|
default: "false"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
renovateLogLevel:
|
||||||
|
description: "Log-Level"
|
||||||
|
default: "debug"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
configurationFile:
|
||||||
|
description: "Renovate configuration file"
|
||||||
|
default: ".github/renovate.json5"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
app_id:
|
||||||
|
description: "App ID of the application used to generate a token"
|
||||||
|
required: true
|
||||||
|
app_private_key:
|
||||||
|
description: "Private key of the application used to generate a token"
|
||||||
|
required: true
|
||||||
|
|
||||||
on: [push,manual]
|
|
||||||
jobs:
|
jobs:
|
||||||
renovate-dry:
|
|
||||||
image: ghcr.io/renovatebot/renovate:36.52.2
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- renovate $${CI_REPO} jahanson/valinor
|
|
||||||
environment:
|
|
||||||
RENOVATE_PLATFORM: gitea
|
|
||||||
RENOVATE_ENDPOINT: https://git.hsn.dev
|
|
||||||
LOG_LEVEL: debug
|
|
||||||
RENOVATE_DRY_RUN: full
|
|
||||||
secrets:
|
|
||||||
- source: token
|
|
||||||
target: renovate_token
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
renovate:
|
renovate:
|
||||||
image: ghcr.io/visualon/renovate:36.52.2
|
name: Renovate
|
||||||
pull: true
|
runs-on: docker
|
||||||
commands:
|
steps:
|
||||||
- renovate $${CI_REPO} jahanson/valinor
|
- name: Checkout
|
||||||
environment:
|
uses: actions/checkout@v3
|
||||||
RENOVATE_PLATFORM: gitea
|
with:
|
||||||
RENOVATE_ENDPOINT: https://git.hsn.dev
|
token: '${{ secrets.token }}'
|
||||||
LOG_LEVEL: debug
|
|
||||||
secrets:
|
- name: Renovate
|
||||||
- source: token
|
uses: renovatebot/github-action@v39.0.1
|
||||||
target: renovate_token
|
env:
|
||||||
when:
|
DRY_RUN: ${{ inputs.dryRun }}
|
||||||
- event: cron
|
LOG_LEVEL: ${{ inputs.renovateLogLevel }}
|
||||||
cron: renovate
|
with:
|
||||||
- event: manual
|
configurationFile: ${{ inputs.configurationFile }}
|
||||||
|
token: '${{ secrets.token }}'
|
Reference in a new issue