generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 913 Bytes
/
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
name: Renovate
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 11 * * *" # 3 AM PST = 11 AM UDT
workflow_dispatch:
env:
config: renovate.json
jobs:
renovate:
runs-on: ubuntu-22.04
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
# PRs should always use dry run
- name: Dry run for PRs
if: github.event_name == 'pull_request'
env:
repos: '["bcgov/nr-renovate", "bcgov/quickstart-openshift"]'
run: |
cat <<< $(jq '.+= {"dryRun": "full"}' ${{ env.config }}) > ${{ env.config }}
cat <<< $(jq '. | .repositories = ${{ env.repos }}' ${{ env.config }}) > ${{ env.config }}
- name: Self-hosted Renovate
uses: renovatebot/github-action@v34.149.0
with:
configurationFile: ${{ env.config }}
token: ${{ secrets.RENOVATE_TOKEN }}