-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.53 KB
/
renovate.yml
File metadata and controls
61 lines (54 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Renovate
on:
# Schedule: run every day at 2am
schedule:
- cron: '0 2 * * *'
# Run on demand via workflow_dispatch
workflow_dispatch:
inputs:
logLevel:
description: 'Renovate log level'
required: true
default: 'info'
type: choice
options:
- debug
- info
- warn
- error
dryRun:
description: 'Dry run'
type: boolean
default: false
# Prevent multiple Renovate runs from happening simultaneously
concurrency:
group: renovate
cancel-in-progress: false
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
# Allow renovate to create PRs
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
# Use custom docker-based renovate to run self-hosted
- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.0.4
with:
configurationFile: renovate.json5
token: ${{ secrets.GITHUB_TOKEN }}
env:
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
DRY_RUN: ${{ inputs.dryRun == true && 'full' || '' }}
RENOVATE_BASE_BRANCHES: 'main'
RENOVATE_EXTENDS: 'config:recommended,group:allNonMajor'
# Include local configuration files
RENOVATE_CONFIG_FILE: 'renovate.json5'
RENOVATE_EXTENDS_FROM: |
.github/renovate-automerge.json5
.github/renovate-groups.json5