Skip to content

Commit a792a85

Browse files
committed
Renovate setup files
1 parent d0beb3d commit a792a85

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Refer to https://internaldocs.unity.com/renovate/ for more documentation
2+
3+
# This workflow is for validating the Renovate configuration and docker image
4+
# updates for it.
5+
name: Renovate Validation
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
log-level:
10+
type: choice
11+
description: Select log level for Renovate
12+
options:
13+
- trace
14+
- debug
15+
- info
16+
- warn
17+
- error
18+
default: info
19+
required: false
20+
pull_request:
21+
paths:
22+
# we trigger validation on any changes to the renovate workflow files
23+
- .github/workflows/renovate*.yml
24+
# as well as for any possible location for the renovate config file
25+
- .github/renovate.json?
26+
27+
28+
jobs:
29+
renovate-validation:
30+
# The reusable workflow will be updated by renovate if there's a new version
31+
uses: Unity-Technologies/renovate-workflows/.github/workflows/[email protected]
32+
with:
33+
# This is the image that contains our custom renovate and will be auto
34+
# updated by Renovate itself.
35+
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70
36+
dry-run: full
37+
log-level: ${{ github.event.inputs.log-level }}
38+
secrets:
39+
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }}
40+
github-com-token: ${{ secrets.GH_COM_TOKEN }}

.github/workflows/renovate.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow runs Renovate against the current repo and will create PRs with outdated dependencies.
2+
name: Renovate
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
log-level:
8+
type: choice
9+
description: Select log level for Renovate
10+
options:
11+
- trace
12+
- debug
13+
- info
14+
- warn
15+
- error
16+
default: info
17+
required: false
18+
schedule:
19+
# Daily scheduled run.
20+
- cron: '0 0 * * *'
21+
22+
jobs:
23+
renovate:
24+
# The reusable workflow will be updated by renovate if there's a new version
25+
uses: Unity-Technologies/renovate-workflows/.github/workflows/[email protected]
26+
with:
27+
# This is the image that contains our custom renovate and will be auto
28+
# updated by Renovate itself.
29+
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70
30+
log-level: ${{ github.event.inputs.log-level }}
31+
secrets:
32+
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }}
33+
github-com-token: ${{ secrets.GH_COM_TOKEN }}

0 commit comments

Comments
 (0)