Skip to content

Renovate

Renovate #2288

Workflow file for this run

name: Renovate
on:
schedule:
# The "*" (#42, asterisk) character has special semantics in YAML, so this
# string has to be quoted.
- cron: "0 10-20 * * *"
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: false
default: "debug"
type: choice
options:
- debug
- info
- warn
- error
- fatal
dryRun:
description: "Dry run"
required: false
default: ""
type: choice
options:
- ""
- extract
- lookup
- full
permissions:
contents: read
pull-requests: read
env:
LOG_LEVEL: "debug"
DRY_RUN: ""
RENOVATE_CONFIG_FILE: .github/renovate-config.cjs
concurrency: ${{ github.workflow }}
jobs:
renovate:
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Override default config from dispatch variables
run: |
echo "LOG_LEVEL=${{ github.event.inputs.logLevel || env.LOG_LEVEL }}" >> "$GITHUB_ENV"
echo "RENOVATE_DRY_RUN=${{ github.event.inputs.dryRun || env.DRY_RUN }}" >> "$GITHUB_ENV"
- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.3.2
env:
# Repository taken from variable to keep configuration file generic
RENOVATE_REPOSITORIES: ${{ github.repository }}
with:
configurationFile: ${{ env.RENOVATE_CONFIG_FILE }}
token: ${{ secrets.RENOVATE_TOKEN }}
mount-docker-socket: "true"