Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Renovate dependency update bot.
#
# Required setup:
# 1. Create a GitHub App with permissions: contents:write,
# pull-requests:write, issues:read+write, checks:write.
# 2. Install the App on the target org/repos.
# 3. Set repository variable RENOVATE_APP_ID to the App ID.
# 4. Set repository secret RENOVATE_PRIVATE_KEY to the App's PEM private key.
#
# See: https://docs.renovatebot.com/getting-started/running/#github-app
name: Renovate

on:
schedule:
- cron: "13 3,15 * * *"
workflow_dispatch:
inputs:
dry-run:
description: "Run Renovate in dry-run mode"
required: false
Comment thread
rh-hemartin marked this conversation as resolved.
default: "false"
type: choice
options:
- "false"
- full

permissions: {}

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Comment thread
rh-hemartin marked this conversation as resolved.
Comment thread
rh-hemartin marked this conversation as resolved.

- uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: ${{ vars.RENOVATE_APP_ID }}
private-key: ${{ secrets.RENOVATE_PRIVATE_KEY }}

- uses: renovatebot/github-action@v46
Comment thread
rh-hemartin marked this conversation as resolved.
with:
token: ${{ steps.app-token.outputs.token }}
configurationFile: renovate.json
env:
LOG_LEVEL: info
RENOVATE_DRY_RUN: ${{ inputs.dry-run || 'false' }}
2 changes: 2 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"prHourlyLimit": 1,
"postUpdateOptions": ["gomodTidy"],
"git-submodules": {
"enabled": true
},
Expand Down
Loading