Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

renovate

renovate #1834

Workflow file for this run

---
name: renovate
on:
workflow_dispatch:
inputs:
dryRun:
type: boolean
description: Dry-Run
logLevel:
type: choice
description: Log-Level
default: debug
options:
- info
- debug
- trace
push:
branches:
- main
- "!renovate/*"
schedule:
- cron: 0 0-3 * * 0
env:
# keep-sorted start
# https://docs.renovatebot.com/troubleshooting/#log-debug-levels
LOG_LEVEL: ${{ inputs.logLevel || 'debug' }}
RENOVATE_AUTOMERGE: "true"
# Renovate Automerge
RENOVATE_AUTOMERGE_TYPE: branch
# https://docs.renovatebot.com/self-hosted-configuration/#dryrun
# Run renovate in dry-run mode if executed in branches other than main - prevents versions in PRs/branches from being updated
RENOVATE_DRY_RUN: ${{ inputs.dryRun || ( github.head_ref || github.ref_name ) != 'main' || false }}
# https://docs.renovatebot.com/configuration-options/#platformcommit
RENOVATE_PLATFORM_COMMIT: "true"
# https://docs.renovatebot.com/self-hosted-configuration/#repositories
RENOVATE_REPOSITORIES: ${{ github.repository }}
# https://docs.renovatebot.com/self-hosted-configuration/#username
RENOVATE_USERNAME: ${{ github.repository_owner }}
# keep-sorted end
permissions: read-all
jobs:
github-context:
runs-on: ubuntu-latest
steps:
- name: Debug
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "${GITHUB_CONTEXT}"
renovate:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: app-token
with:
app-id: ${{ secrets.MY_RENOVATE_GITHUB_APP_ID }}
private-key: ${{ secrets.MY_RENOVATE_GITHUB_PRIVATE_KEY }}
- name: 💡 Self-hosted Renovate
uses: renovatebot/github-action@19ba43e1bc58ed95c0ba205dee8b1bc0f27b630d # v42.0.0
with:
token: ${{ steps.app-token.outputs.token }}