Skip to content

Commit 3630c8d

Browse files
committed
build: Update Renovate workflow
The changes add support for execution in forks and easier to set fields. Signed-off-by: Paulo Gomes <[email protected]>
1 parent d57ba4b commit 3630c8d

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/renovate-vault.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,34 @@ on:
55
logLevel:
66
description: "Override default log level"
77
required: false
8-
default: "info"
9-
type: string
8+
default: info
9+
type: choice
10+
options:
11+
- info
12+
- debug
1013
overrideSchedule:
1114
description: "Override all schedules"
1215
required: false
1316
default: "false"
17+
type: choice
18+
options:
19+
- "false"
20+
- "true"
21+
configMigration:
22+
description: "Toggle PRs for config migration"
23+
required: false
24+
default: "true"
25+
type: choice
26+
options:
27+
- "false"
28+
- "true"
29+
renovateConfig:
30+
description: "Define a custom renovate config file"
31+
required: false
32+
default: ".github/renovate.json"
1433
type: string
34+
1535
schedule:
16-
# Runs twice on Tuesdays to Thursdays.
1736
- cron: '30 4,6 * * 2-4'
1837

1938
permissions:
@@ -24,7 +43,9 @@ jobs:
2443
call-workflow:
2544
uses: rancher/renovate-config/.github/workflows/renovate-vault.yml@release
2645
with:
46+
configMigration: ${{ inputs.configMigration || 'true' }}
2747
logLevel: ${{ inputs.logLevel || 'info' }}
2848
overrideSchedule: ${{ github.event.inputs.overrideSchedule == 'true' && '{''schedule'':null}' || '' }}
29-
renovateConfig: .github/renovate.json
30-
secrets: inherit
49+
renovateConfig: ${{ inputs.renovateConfig || '.github/renovate.json' }}
50+
secrets:
51+
override-token: "${{ secrets.RENOVATE_FORK_GH_TOKEN || '' }}"

0 commit comments

Comments
 (0)