---
name: Run Renovate
on:
workflow_call:
inputs:
dryRun:
description: "Dry-Run"
default: "false"
required: false
type: string
renovateLogLevel:
description: "Log-Level"
default: "debug"
configurationFile:
description: "Renovate configuration file"
default: ".github/renovate.json5"
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"
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.app_id }}
private_key: ${{ secrets.app_private_key }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
token: '${{ steps.generate-token.outputs.token }}'
- name: Renovate
uses: renovatebot/github-action@v39.2.3
env:
DRY_RUN: ${{ inputs.dryRun }}
LOG_LEVEL: ${{ inputs.renovateLogLevel }}
configurationFile: ${{ inputs.configurationFile }}