Skip to content

Commit beb4a5e

Browse files
authored
Merge pull request #198 from JohT/feature/use-renovate-to-update-jqassistant-plugins
Use Renovate to update jQAssistant plugins
2 parents b4c4601 + 15f3e0b commit beb4a5e

File tree

2 files changed

+59
-3
lines changed

2 files changed

+59
-3
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check Renovate Configuration
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# Only watch root level Renovate configuration changes
8+
paths:
9+
- 'renovate.json*'
10+
11+
jobs:
12+
reports:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout GIT Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: '.nvmrc'
22+
23+
- name: Run renovate-config-validator
24+
run: npx --yes --package renovate -- renovate-config-validator

renovate.json

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
"extends": [
44
"config:base",
55
":combinePatchMinorReleases",
6-
":ignoreUnstable",
76
"schedule:earlyMondays"
87
],
98
"ignoreUnstable": false,
10-
"regexManagers": [
9+
"packageRules": [
1110
{
11+
"description": "Neo4j update settings",
12+
"matchDepNames": [
13+
"neo4j/neo4j"
14+
],
15+
"matchUpdateTypes": [
16+
"minor",
17+
"major"
18+
],
19+
"minimumReleaseAge": "1 month"
20+
}
21+
],
22+
"customManagers": [
23+
{
24+
"customType": "regex",
1225
"fileMatch": [
1326
"^(workflow-templates|\\.github\/workflows)\\/[^/]+\\.ya?ml$",
1427
"(^|\\/)action\\.ya?ml$]"
@@ -21,6 +34,7 @@
2134
"extractVersionTemplate": "^axon-?(?<version>.*?)$"
2235
},
2336
{
37+
"customType": "regex",
2438
"fileMatch": [
2539
"^(workflow-templates|\\.github\/workflows)\\/[^/]+\\.ya?ml$",
2640
"(^|\\/)action\\.ya?ml$]"
@@ -33,6 +47,7 @@
3347
"extractVersionTemplate": "^react-router@?(?<version>.*?)$"
3448
},
3549
{
50+
"customType": "regex",
3651
"fileMatch": [
3752
"README.md"
3853
],
@@ -44,6 +59,7 @@
4459
"extractVersionTemplate": "^axon-?(?<version>.*?)$"
4560
},
4661
{
62+
"customType": "regex",
4763
"fileMatch": [
4864
"^(workflow-templates|\\.github\/workflows)\\/[^/]+\\.ya?ml$",
4965
"(^|\\/)action\\.ya?ml$]"
@@ -55,6 +71,7 @@
5571
"datasourceTemplate": "github-releases"
5672
},
5773
{
74+
"customType": "regex",
5875
"fileMatch": [
5976
"^scripts\/profiles\/Neo4jv5\\.sh$",
6077
"^scripts\/profiles\/Default\\.sh$",
@@ -67,6 +84,7 @@
6784
"datasourceTemplate": "github-tags"
6885
},
6986
{
87+
"customType": "regex",
7088
"fileMatch": [
7189
"^scripts\/profiles\/Neo4jv5\\.sh$",
7290
"^scripts\/profiles\/Default\\.sh$",
@@ -79,6 +97,7 @@
7997
"datasourceTemplate": "github-releases"
8098
},
8199
{
100+
"customType": "regex",
82101
"fileMatch": [
83102
"^scripts\/profiles\/Neo4jv5\\.sh$",
84103
"^scripts\/profiles\/Default\\.sh$",
@@ -91,6 +110,7 @@
91110
"datasourceTemplate": "github-releases"
92111
},
93112
{
113+
"customType": "regex",
94114
"fileMatch": [
95115
"^scripts\/profiles\/Neo4jv5\\.sh$",
96116
"^scripts\/profiles\/Default\\.sh$",
@@ -105,6 +125,7 @@
105125
"versioningTemplate": "loose"
106126
},
107127
{
128+
"customType": "regex",
108129
"fileMatch": [
109130
"^scripts\/profiles\/Neo4jv5\\.sh$",
110131
"^scripts\/profiles\/Default\\.sh$",
@@ -118,6 +139,7 @@
118139
"extractVersionTemplate": "^REL-?(?<version>.*?)$"
119140
},
120141
{
142+
"customType": "regex",
121143
"fileMatch": [
122144
"^scripts\/[^\/]*\\.sh$"
123145
],
@@ -126,6 +148,16 @@
126148
],
127149
"depNameTemplate": "jqassistant-plugin/jqassistant-typescript-plugin",
128150
"datasourceTemplate": "github-tags"
151+
},
152+
{
153+
"fileMatch": [
154+
"^scripts\/configuration\/*\\.yaml$"
155+
],
156+
"matchStrings": [
157+
"\\s*\\-\\s+group-id:\\s*(?<group>.*?)\\s*[\r\n]\\s*artifact-id:\\s*(?<artifact>.*?)\\s*[\r\n]\\s*version:\\s*(?<currentValue>.*?)\\s*[\r\n]"
158+
],
159+
"depNameTemplate": "{{{group}}}:{{{artifact}}}",
160+
"datasourceTemplate": "maven"
129161
}
130162
]
131-
}
163+
}

0 commit comments

Comments
 (0)