Renovate #2792
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: | |
schedule: | |
# Running every hour every working day (Monday to Friday) | |
- cron: '0 * * * 1-5' | |
# Running every two hours on weekends (Saturday and Sunday) | |
- cron: '0 */2 * * 6,0' | |
# allow to manually trigger this workflow | |
workflow_dispatch: | |
inputs: | |
renovate_log_level_debug: | |
type: boolean | |
description: "Rune Renovate With Debug Log Levels" | |
default: true | |
jobs: | |
renovate: | |
name: Run self-hosted Renovate | |
runs-on: ubuntu-latest | |
steps: | |
# we need special permission to be able to operate renovate (view, list, | |
# create issues, PR, etc.) and we use a GitHub application with fine | |
# grained permissions installed in the repository for that. | |
- name: Get token | |
id: get_token | |
uses: cilium/actions-app-token@61a6271ce92ba02f49bf81c755685d59fb25a59a # v0.21.1 | |
with: | |
APP_PEM: ${{ secrets.CILIUM_RENOVATE_PEM }} | |
APP_ID: ${{ secrets.CILIUM_RENOVATE_APP_ID }} | |
# renovate clones the repository again in its container fs but it needs | |
# the renovate configuration to start. | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Self-hosted Renovate | |
uses: renovatebot/github-action@80eaf969abf68ad62aa94d9ab392421b31621634 # v40.3.4 | |
env: | |
# default to DEBUG log level, this is always useful | |
LOG_LEVEL: ${{ github.event.inputs.renovate_log_level_debug == 'false' && 'INFO' || 'DEBUG' }} | |
with: | |
# renovate: datasource=github-releases depName=renovatebot/renovate | |
renovate-version: 38.128.6 | |
docker-user: root | |
docker-cmd-file: .github/actions/renovate/entrypoint.sh | |
configurationFile: .github/renovate.json5 | |
token: '${{ steps.get_token.outputs.app_token }}' | |
mount-docker-socket: true |