-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.68 KB
/
renovate.yaml
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
62
---
name: Renovate
on:
workflow_dispatch:
inputs:
dryRun:
description: "Dry Run"
default: "false"
required: false
logLevel:
description: "Override default log level"
default: "debug"
required: false
schedule:
- cron: "0 0 * * *" # Every day at midnight
push:
branches:
- "main"
paths:
- .github/renovate.json5
- .github/renovate/**.json5
env:
LOG_LEVEL: debug
RENOVATE_DRY_RUN: false
jobs:
renovate:
name: Renovate
runs-on: ubuntu-22.04
steps:
- name: Generate Token
id: generate-token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
env:
RENOVATE_TOKEN: "${{ outputs.token }}"
- name: Checkout repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Validate Renovate JSON
run: jq type .github/renovate.json5
- name: Override default config with input variables
run: |
echo "RENOVATE_DRY_RUN=${{ github.event.inputs.dryRun || env.RENOVATE_DRY_RUN}}" >> $GITHUB_ENV
echo "RENOVATE_DRY_RUN=${{ github.event.inputs.logLevel || env.LOG_LEVEL}}" >> $GITHUB_ENV
- name: generate token
run: |
echo "$RENOVATE_TOKEN=${{ steps.app-generate.outputs.token }}"
- name: Renovate
uses: renovatebot/github-action@76d49712364696a06b60e8647df46b288fff0ddc # v40.2.4
with:
configurationFile: "${{ env.RENOVATE_CONFIG_FILE }}"
token: "${{ env.RENOVATE_TOKEN }}"