Skip to content

Commit

Permalink
ci: update renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Aug 28, 2023
1 parent b86b718 commit 83643e1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/renovate-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: renovate-approve
run-name: CI for approving renovate PRs

on:
push:
branches:
- "renovate/**"

jobs:
autoapprove:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Approve PR
run: |
gh pr review --approve || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# workflow for checking package versions and opening PRs to bump
name: Renovate
on:
workflow_dispatch:
workflow_call:

jobs:
renovate:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Self-hosted Renovate
uses: renovatebot/github-action@23a02fe7be9e93f857a953cc8162e57d2c8401ef # v39.0.1
with:
configurationFile: renovate-config.js
token: ${{ secrets.PAT_TOKEN }}
10 changes: 10 additions & 0 deletions renovate-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
branchPrefix: 'renovate/',
dryRun: null,
username: 'renovate-release',
gitAuthor: 'Renovate Bot <[email protected]>',
onboarding: true,
platform: 'github',
includeForks: true,
repositories: ['canonical/oathkeeper-rock'],
}
17 changes: 14 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}
"config:base",
":disableDependencyDashboard",
":automergeDigest",
":automergePatch",
":automergeMinor",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"helpers:pinGitHubActionDigests"
],
"automergeType": "pr",
"rebaseWhen": "behind-base-branch",
"automerge": true
}

0 comments on commit 83643e1

Please sign in to comment.