Skip to content

Commit

Permalink
chore(ci): update renovate yaml customManager
Browse files Browse the repository at this point in the history
Signed-off-by: ggjulio <juligonz@student.42.fr>
  • Loading branch information
ggjulio committed Oct 8, 2024
1 parent 5543900 commit 0905fa0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ jobs:
id: spdx-builder
env:
# defines the spdx/spdx-sbom-generator version to use.
# renovate: datasource=go packageName=github.com/spdx/spdx-sbom-generator/cmd/generator versioning=regex:^v(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)?$
SPDX_GEN_VERSION: v0.0.13
# defines the sigs.k8s.io/bom version to use.
# renovate: datasource=go packageName=sigs.k8s.io/bom/cmd/bom versioning=regex:^v(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)?$
SIGS_BOM_VERSION: v0.2.1
# comma delimited list of project relative folders to inspect for package
# managers (gomod, yarn, npm).
Expand Down
25 changes: 25 additions & 0 deletions renovate-presets/commons.json5
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@
"major"
]
},
{
"matchUpdateTypes": [
"minor"
],
"addLabels": [
"minor"
]
},
{
"matchUpdateTypes": [
"patch"
],
"addLabels": [
"patch"
]
},
{
"description": "Add labels for PRs related to javascript",
"matchDatasources": [
Expand Down Expand Up @@ -69,6 +85,15 @@
"addLabels": [
"python"
]
},
{
"description": "Add labels for PRs related to containers",
"matchCategories": [
"docker"
],
"addLabels": [
"docker"
]
}
]
}
8 changes: 4 additions & 4 deletions renovate-presets/custom-managers/yaml.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{
"description": "A generic custom manager for updating any yaml fields ending by 'version:' (case insensitive)",
"customType": "regex",
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?:\\s*(?:'|\")(?<currentValue>[^(?:'|\")]+)(?:'|\")",
"# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?:\\s*(?<currentValue>[^'\"\\s]+)"
],
"fileMatch": [
".github\\/workflows.+\\.(?:yml|yaml)$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?((?i)VERSION)\\s*:\\s*(?:'|\")(?<currentValue>[^(?:'|\")]+)(?:'|\")",
"# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?((?i)VERSION)\\s*:\\s*(?<currentValue>[^'\"\\s]+)"
]
}
]
Expand Down
4 changes: 3 additions & 1 deletion renovate-presets/devtool.json5
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"go"
],
"matchPackageNames": [
"github.com/golangci/golangci-lint"
"github.com/golangci/golangci-lint",
"github.com/spdx/spdx-sbom-generator/cmd/generator",
"sigs.k8s.io/bom/cmd/bom"
],
"enabled": true
},
Expand Down

0 comments on commit 0905fa0

Please sign in to comment.