-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgha.json5
48 lines (48 loc) · 1.27 KB
/
gha.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
// Configuration for repositories defining custom GitHub actions
$schema: "https://docs.renovatebot.com/renovate-schema.json",
packageRules: [
{
description: "Update to action dependencies use fix commits to trigger a release",
matchFileNames: ["action.yml"],
// semanticCommitType: "fix",
// extends: [":semanticCommitType(fix)"]
extends: [":semanticCommitTypeAll(fix)"]
},
],
customManagers: [
{
description: "Update semantic-release in GitHub Action",
customType: "regex",
fileMatch: ["action.ya?ml$"],
matchStrings: [
"\
semantic_version\\s*:\\s*(\"|')?(?<currentValue>.+)(\"|')?\
(\\s+|\\s+.*)"
],
datasourceTemplate: "npm",
depNameTemplate: "semantic-release"
},
{
description: "Generic dependencies in GitHub Action",
customType: "regex",
fileMatch: ["action.ya?ml$"],
matchStrings: [
"\
.*renovate:\
\\sdatasource=(?<datasource>.*?)\
\\sdepName=(?<depName>.*?)\
(\\sversioning=(?<versioning>.*?))?\
\n.*(version|Version|VERSION)\\s*(:=|=|:)\\s*\"?(?<currentValue>.*?)\
(@(?<currentDigest>sha256:[a-f0-9]+))?\"?\
(\\s+|\\s+.*)"
],
versioningTemplate: "\
{{#if versioning}}\
{{{versioning}}}\
{{else}}\
semver-coerced\
{{/if}}"
},
],
}