-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path{% if dependency_updater == 'renovate' %}renovate.yaml{% endif %}.jinja
More file actions
63 lines (56 loc) · 1.97 KB
/
{% if dependency_updater == 'renovate' %}renovate.yaml{% endif %}.jinja
File metadata and controls
63 lines (56 loc) · 1.97 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
62
63
name: Renovate
on:
issues:
types: [edited]
schedule:
- cron: "0 20 * * 1-5"
- cron: "0 9 * * 0,6"
workflow_dispatch:
inputs:
log_level:
description: "Renovate log level"
required: false
default: "info"
type: choice
options:
- debug
- info
- warn
- error
concurrency:
group: renovate
cancel-in-progress: false
permissions: {}
env:
RENOVATE_VERSION: 43.161.0 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
jobs:
renovate:
if: {% raw %}github.event_name != 'issues' || contains(github.event.issue.title, 'Dependency Dashboard'){% endraw %}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
{% if renovate_auth_method == 'github_app' %}
- name: Generate GitHub App token
id: app_token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
app-id: {% raw %}${{ secrets.RENOVATE_APP_ID }}{% endraw %}
private-key: {% raw %}${{ secrets.RENOVATE_APP_PRIVATE_KEY }}{% endraw %}
owner: {% raw %}${{ github.repository_owner }}{% endraw %}
repositories: {% raw %}${{ github.event.repository.name }}{% endraw %}
{% endif %}
- name: Run Renovate
uses: renovatebot/github-action@79dc0ba74dc3de28db0a7aeb1d0b95d5bf5fde2a # v46.1.13
with:
renovate-version: {% raw %}${{ env.RENOVATE_VERSION }}{% endraw %}
{% if renovate_auth_method == 'github_app' %}
token: {% raw %}${{ steps.app_token.outputs.token }}{% endraw %}
{% else %}
token: {% raw %}${{ secrets.RENOVATE_TOKEN }}{% endraw %}
{% endif %}
configurationFile: renovate.json5
env:
LOG_LEVEL: {% raw %}${{ inputs.log_level || 'info' }}{% endraw %}
RENOVATE_REPOSITORIES: {% raw %}${{ github.repository }}{% endraw %}