Skip to content

Commit

Permalink
fix: renovate exception (#2716)
Browse files Browse the repository at this point in the history
## Proposed change

fix: codecov version raising an exception on mend.io (see [mend.io
dashboard](https://developer.mend.io/github/AmadeusITGroup/otter))
fix: renovate node version rule to activate on main branches

<!--
Please include a summary of the changes and the related issue.
Please also include relevant motivation and context.
-->

## Related issues

<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->

*- No issue associated -*

<!-- * 🐛 Fix #issue -->
<!-- * 🐛 Fix resolves #issue -->
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * :octocat: Pull Request #issue -->
  • Loading branch information
kpanot authored Jan 24, 2025
2 parents 5e04468 + 87988ee commit db3151e
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions tools/renovate/managers/github-node-version.json5
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Upgrade Node LTS version dependencies in Github Pipeline",
"customManagers": [
{
"description": "Upgrade Node to LTS version in Github Pipeline Environment",
"customType": "regex",
// TODO: To be removed when Renovate will support fileMatch reference or Manager extension
"fileMatch": [
Expand All @@ -13,11 +13,32 @@
"(^|/)action\\.ya?ml$"
],
"matchStrings": [
"node-version: (?<currentValue>.+?)"
"node-version: (?<currentValue>.+?)\\s"
],
"depNameTemplate": "node",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
"datasourceTemplate": "node-version",
"versioningTemplate": "node"
}
],
"packageRules": [
{
// TODO: replace the following matchers to `matchManagers` when https://github.com/renovatebot/renovate/issues/21760 is fixed
"matchDatasources": [
"node-version"
],
"matchFileNames": [
"**/.github/workflows/**/*.y{a,}ml",
"**/__dot__github/workflows/**/*.y{a,}ml",
"**/__empty__.github/workflows/**/*.y{a,}ml",
"**/action.y{a,}ml"
],

"matchBaseBranches": [
"main",
"master",
"develop"
],
"enable": true
}
]
}

0 comments on commit db3151e

Please sign in to comment.