Skip to content

Commit

Permalink
Merge pull request #12 from canonical/IAM-414
Browse files Browse the repository at this point in the history
Update renovate config
  • Loading branch information
nsklikas authored Sep 1, 2023
2 parents 20d1c6c + 57dcb30 commit ae32505
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 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/hydra-rock'],
}
15 changes: 13 additions & 2 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 ae32505

Please sign in to comment.