-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·65 lines (61 loc) · 2.08 KB
/
run-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
63
64
65
---
name: Run Renovate
on:
workflow_call:
inputs:
dryRun:
description: "Dry-Run"
default: "false"
required: false
type: string
renovateLogLevel:
description: "Log-Level"
default: "debug"
required: false
type: string
configurationFile:
description: "Renovate configuration file"
default: ".github/renovate.json5"
required: false
type: string
app_name:
type: string
description: "App name of the application used to generate a token"
required: false
default: "updootyboi"
secrets:
app_id:
description: "App ID of the application used to generate a token"
required: true
app_private_key:
description: "Private key of the application used to generate a token"
required: true
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: "Generate Short Lived OAuth App Token (ghs_*)"
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.app_id }}"
private-key: "${{ secrets.app_private_key }}"
- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Renovate
uses: renovatebot/[email protected]
env:
LOG_LEVEL: ${{ inputs.renovateLogLevel }}
RENOVATE_DRY_RUN: ${{ inputs.dryRun }}
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"
RENOVATE_PLATFORM: "github"
RENOVATE_USERNAME: "${{inputs.app_name}}[bot]"
RENOVATE_GIT_AUTHOR: "${{inputs.app_name}} <${{ secrets.app_id }}+${{inputs.app_name}}[bot]@users.noreply.github.com>"
RENOVATE_PLATFORM_COMMIT: "true"
with:
configurationFile: ${{ inputs.configurationFile }}
token: "${{ steps.app-token.outputs.token }}"