Skip to content

Renovate

Renovate #7380

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Renovate"
on:
workflow_dispatch:
inputs:
dryRun:
description: "Dry Run"
default: false
type: choice
options:
- extract
- lookup
- full
required: false
logLevel:
description: "Log Level"
default: "info"
type: choice
options:
- debug
- info
- warn
- error
- fatal
required: false
version:
description: Renovate version
default: latest
required: false
schedule:
- cron: "0 * * * *"
push:
branches:
- main
paths:
- .github/workflows/schedule-renovate.yml
- .github/renovate.json5
- .github/renovate/**.json5
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
LOG_LEVEL: "${{ inputs.logLevel || 'debug' }}"
RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
RENOVATE_PLATFORM: github
RENOVATE_PLATFORM_COMMIT: true
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"
WORKFLOW_RENOVATE_VERSION: "${{ inputs.version || 'latest' }}"
RENOVATE_USERNAME: "${{ secrets.BOT_USERNAME }}[bot]"
RENOVATE_GIT_AUTHOR: "${{ secrets.BOT_USERNAME }} <${{ secrets.BOT_USER_ID }}+${{ secrets.BOT_USERNAME }}[bot]@users.noreply.github.com>"
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Validate Renovate Configuration
uses: suzuki-shunsuke/github-action-renovate-config-validator@36a15b83e37bf3221dc9c02ff5ffdaefb51ca1cf # v1.1.0
- name: Generate Token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Renovate
uses: renovatebot/github-action@e1db501385ddcccbaae6fb9c06befae04f379f23 # v40.2.10
with:
configurationFile: .github/renovate.json5
token: "x-access-token:${{ steps.app-token.outputs.token }}"
renovate-version: "${{ env.WORKFLOW_RENOVATE_VERSION }}"