Skip to content

Commit

Permalink
fix: remove renovate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Sep 8, 2023
1 parent f60fd02 commit 991215f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 51 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/auto-approver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: auto-approver
run-name: CI for approving PRs

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

jobs:
autoapprove:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Approve PR
run: |
gh pr review --approve || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Enable automerge if required
if: startsWith(github.ref_name, 'renovate/auto-')
run: |
gh pr merge --auto --merge || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/renovate-approve.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/renovate.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions renovate-config.js

This file was deleted.

33 changes: 28 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,30 @@
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"]
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
},
{
"groupName": "UI deps",
"matchManagers": ["npm"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"prPriority": 4
"prPriority": 4,
"additionalBranchPrefix": "auto-"
},
{
"groupName": "internal UI dependencies",
"groupSlug": "internal",
"packagePatterns": [
"^@canonical",
"^canonicalwebteam",
"^vanilla-framework"
],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"schedule": ["at any time"],
"prPriority": 5,
"additionalBranchPrefix": "auto-"
},
{
"groupName": "internal UI dependencies",
Expand All @@ -37,22 +52,30 @@
"^canonicalwebteam",
"^vanilla-framework"
],
"extends": [":automergeMinor"],
"matchUpdateTypes": ["major"],
"schedule": ["at any time"],
"prPriority": 5
},
{
"groupName": "Go deps",
"matchManagers": ["gomod"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
},
{
"groupName": "Go deps",
"matchManagers": ["gomod"],
"matchUpdateTypes": ["major"],
"schedule": ["at any time"]
},
{
"groupName": "renovate packages",
"matchSourceUrlPrefixes": ["https://github.com/renovatebot/"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"]
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
}
]
}

0 comments on commit 991215f

Please sign in to comment.