-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.45 KB
/
renovate.yml
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
name: Renovate
on:
schedule:
# At minute 3 past hour 4
- cron: '3 4 * * *'
workflow_dispatch:
pull_request:
paths:
- '.github/renovate*'
- '.github/workflows/renovate*'
push:
branches:
- 'main'
paths:
- '.github/renovate*'
- '.github/workflows/renovate*'
jobs:
renovate:
runs-on: ubuntu-latest
concurrency: renovate-${{ github.ref }}
steps:
- name: Generate token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.RENOVATE_APP_ID }}
private_key: ${{ secrets.RENOVATE_PEM }}
- name: Checkout
uses: actions/checkout@v4
- name: Validate Renovate JSON
run: jq empty .github/renovate.json
- name: Generate Dry Run
if: ${{ github.ref != 'refs/heads/main' }}
run: jq '.dryRun = "true"' .github/renovate.json > .github/renovate-dry-run.json
- name: Renovate - Dry Run
uses: renovatebot/[email protected]
if: ${{ github.ref != 'refs/heads/main' }}
with:
configurationFile: .github/renovate-dry-run.json
token: 'x-access-token:${{ steps.generate_token.outputs.token }}'
- name: Renovate
uses: renovatebot/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
with:
configurationFile: .github/renovate.json
token: 'x-access-token:${{ steps.generate_token.outputs.token }}'