Skip to content

Commit 1db5f2e

Browse files
authored
chore(migrate): migrate renovate to renovate GH action (#24253)
Signed-off-by: nitishfy <[email protected]>
1 parent d269e6f commit 1db5f2e

File tree

3 files changed

+46
-12
lines changed

3 files changed

+46
-12
lines changed

.github/configs/renovate-config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
platform: 'github',
3+
gitAuthor: 'renovate[bot] <renovate[bot]@users.noreply.github.com>',
4+
autodiscover: false,
5+
allowPostUpgradeCommandTemplating: true,
6+
allowedPostUpgradeCommands: ["make mockgen"],
7+
extends: [
8+
"github>argoproj/argo-cd//renovate-presets/commons.json5",
9+
"github>argoproj/argo-cd//renovate-presets/custom-managers/shell.json5",
10+
"github>argoproj/argo-cd//renovate-presets/custom-managers/yaml.json5",
11+
"github>argoproj/argo-cd//renovate-presets/fix/disable-all-updates.json5",
12+
"github>argoproj/argo-cd//renovate-presets/devtool.json5",
13+
"github>argoproj/argo-cd//renovate-presets/docs.json5"
14+
]
15+
}

.github/workflows/renovate.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Renovate
2+
on:
3+
schedule:
4+
- cron: '0 * * * *'
5+
workflow_dispatch: {}
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
renovate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get token
15+
id: get_token
16+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
17+
with:
18+
app-id: ${{ vars.RENOVATE_APP_ID }}
19+
private-key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}
20+
21+
- name: Checkout
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
23+
24+
- name: Self-hosted Renovate
25+
uses: renovatebot/github-action@b11417b9eaac3145fe9a8544cee66503724e32b6 #43.0.8
26+
with:
27+
configurationFile: .github/configs/renovate-config.js
28+
token: '${{ steps.get_token.outputs.token }}'
29+
env:
30+
LOG_LEVEL: 'debug'
31+
RENOVATE_REPOSITORIES: '${{ github.repository }}'

renovate.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)