Skip to content

Renovate

Renovate #5291

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
---
name: 'Renovate'
on:
workflow_dispatch:
inputs:
dryRun:
type: boolean
description: Dry Run
default: false
required: false
logLevel:
type: choice
options:
- debug
- verbose
- info
- warn
- error
- silent
description: Log Level
default: info
required: false
version:
type: string
description: Renovate version
default: latest
required: false
schedule:
- cron: '0 * * * *' # Every hour
push:
branches:
- main
paths:
- .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_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: '${{ github.repository }}'
RENOVATE_BASE_BRANCHES: main
RENOVATE_DRY_RUN: '${{ inputs.dryRun == true }}'
RENOVATE_PLATFORM: github
RENOVATE_PLATFORM_COMMIT: true
WORKFLOW_RENOVATE_VERSION: "${{ inputs.version || 'latest' }}"
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: '${{ secrets.BOT_APP_ID }}'
private-key: '${{ secrets.BOT_APP_PRIVATE_KEY }}'
- name: Checkout
uses: actions/checkout@v4
with:
token: '${{ steps.app-token.outputs.token }}'
- name: Renovate
uses: renovatebot/[email protected]
with:
configurationFile: .github/renovate.json5
token: '${{ steps.app-token.outputs.token }}'
renovate-version: '${{ env.WORKFLOW_RENOVATE_VERSION }}'