Renovate #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Override default log level' | |
required: false | |
default: 'info' | |
type: string | |
overrideSchedule: | |
description: 'Override all schedules' | |
required: false | |
default: 'false' | |
type: string | |
# Run twice in the early morning for initial and follow up steps (create pull request and merge) | |
schedule: | |
- cron: '0 4,5 * * Sat' | |
jobs: | |
renovate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Don't waste time starting Renovate if JSON is invalid | |
- name: Validate Renovate JSON | |
run: jq type .github/renovate.json | |
- name: Self-hosted Renovate | |
uses: renovatebot/[email protected] | |
with: | |
renovate-version: full | |
configurationFile: .github/renovate.json | |
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} | |
env: | |
# Repository taken from variable to keep configuration file generic | |
RENOVATE_REPOSITORIES: ${{ github.repository }} | |
RENOVATE_ONBOARDING: 'false' | |
RENOVATE_PLATFORM_COMMIT: 'true' | |
RENOVATE_FORCE: | |
${{ github.event.inputs.overrideSchedule == 'true' && '{''schedule'':null}' || '' }} | |
LOG_LEVEL: ${{ inputs.logLevel || 'info' }} |