Skip to content

Commit

Permalink
chore: move renovate-config-validator to GH Actions (#233)
Browse files Browse the repository at this point in the history
* chore: move `renovate-config-validator` to GH Actions

* chore(renovate): run lock file maintenance on Saturday
  • Loading branch information
mkniewallner authored Dec 11, 2022
1 parent 0c6efbb commit 7493cb8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/validate-renovate-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: validate-renovate-config

on:
pull_request:
paths: [renovate.json5]
push:
branches: [main]

jobs:
validate-renovate-config:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18" # renovate: datasource=node depName=node versioning=node
- run: npx -p renovate renovate-config-validator
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,3 @@ repos:
rev: "v1.9.0"
hooks:
- id: python-check-blanket-noqa

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: "34.54.0"
hooks:
- id: renovate-config-validator
16 changes: 9 additions & 7 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"config:base",
// https://docs.renovatebot.com/presets-default/#enableprecommit
":enablePreCommit",
// https://docs.renovatebot.com/presets-default/#maintainlockfilesweekly
":maintainLockFilesWeekly",
// https://docs.renovatebot.com/presets-default/#prhourlylimitnone
":prHourlyLimitNone",
// https://docs.renovatebot.com/presets-default/#rebasestaleprs
Expand All @@ -18,6 +16,15 @@
// https://docs.renovatebot.com/configuration-options/#labels
labels: ["dependencies"],

// https://docs.renovatebot.com/configuration-options/#schedule
schedule: ["on saturday"],

// https://docs.renovatebot.com/configuration-options/#lockfilemaintenance
lockFileMaintenance: {
enabled: true,
schedule: ["on saturday"],
},

// https://docs.renovatebot.com/configuration-options/#regexmanagers
regexManagers: [
{
Expand All @@ -29,9 +36,4 @@
datasourceTemplate: "pypi",
},
],

// https://docs.renovatebot.com/configuration-options/#schedule
schedule: [
"on saturday"
]
}

0 comments on commit 7493cb8

Please sign in to comment.