Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into use-default-json
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Jan 2, 2025
2 parents 6af00fe + 9b2fee2 commit 7fd15d2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2024.12.24
version: 2025.1.0
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2024.12.24
version: 2025.1.0
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2024.12.24
version: 2025.1.0
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2024.12.24
version: 2025.1.0
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
with:
version: 2024.12.24
version: 2025.1.0
cache_save: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down
4 changes: 2 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ref: https://mise.jdx.dev/configuration.html
#:schema https://mise.jdx.dev/schema/mise.json

min_version = "2024.12.24"
min_version = "2025.1.0"

[tools]
bun = "1.1.42"
Expand All @@ -23,7 +23,7 @@ taplo = "0.9.3"
"npm:prettier" = "3.4.2"
yamlfmt = "0.14.0"
yamllint = "1.35.1"
"npm:renovate" = "39.86.4"
"npm:renovate" = "39.87.0"
"npm:cspell" = "8.17.1"
"cargo:lychee" = "0.18.0"
typos = "1.29.0"
Expand Down
36 changes: 11 additions & 25 deletions src/default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -22,65 +22,54 @@
{
customType: "regex",
description: "Updates tool versions in mise.toml (default registry)",
// prettier-ignore
fileMatch: ["mise\.toml", "mise/config\\.toml"],
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
// cspell:ignore datasource
datasourceTemplate: "{{#unless datasource}}github-releases{{else}}{{datasource}}{{/unless}}",
matchStrings: [
// test: https://regex101.com/r/8grHta
// prettier-ignore
"# renovate:(?: datasource=(?<datasource>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\n\"?(?<depName>[^:]+?)\"? *= *\"(?<currentValue>.+?)\"",
'# renovate:(?: datasource=(?<datasource>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?(?: extractVersion=(?<extractVersion>.+?))?\\n"?(?<depName>[^:]+?)"? *= *"(?<currentValue>.+?)"',
],
},
// renovate does not support backends
// ref: https://github.com/renovatebot/renovate/issues/30387
{
customType: "regex",
description: "Updates tool versions in mise.toml (Cargo backend)",
// prettier-ignore
fileMatch: ["mise\.toml", "mise/config\\.toml"],
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "crate",
matchStrings: [
// test: https://regex101.com/r/K6Imdx
// prettier-ignore
"\"cargo:(?<depName>.+?)\" *= *\"(?<currentValue>.+?)\"",
'"cargo:(?<depName>.+?)" *= *"(?<currentValue>.+?)"',
],
},
{
customType: "regex",
description: "Updates tool versions in mise.toml (npm backend)",
// prettier-ignore
fileMatch: ["mise\.toml", "mise/config\\.toml"],
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "npm",
matchStrings: [
// test: https://regex101.com/r/avOpdb
// prettier-ignore
"\"npm:(?<depName>.+?)\" *= *\"(?<currentValue>.+?)\"",
'"npm:(?<depName>.+?)" *= *"(?<currentValue>.+?)"',
],
},
{
customType: "regex",
description: "Updates tool versions in mise.toml (ubi, aqua backend)",
// prettier-ignore
fileMatch: ["mise\.toml", "mise/config\\.toml"],
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "github-releases",
matchStrings: [
// test: https://regex101.com/r/RRA3NI
// prettier-ignore
"(?:# renovate: extractVersion=(?<extractVersion>.+?)\\n)?\"(?:ubi|aqua):(?<depName>.+?)\" *= *\".*?(?<currentValue>\\d+\\..+?)\"",
'(?:# renovate: extractVersion=(?<extractVersion>.+?)\\n)?"(?:ubi|aqua):(?<depName>.+?)" *= *".*?(?<currentValue>\\d+\\..+?)"',
],
},
{
customType: "regex",
description: "Updates min_version in mise config",
fileMatch: ["mise\\.toml", "mise/config\\.toml"],
fileMatch: ["(^|/)\\.?mise\\.toml$", "(^|/)\\.?mise/config\\.toml$"],
datasourceTemplate: "github-releases",
depNameTemplate: "mise",
packageNameTemplate: "jdx/mise",
matchStrings: [
// prettier-ignore
"min_version = \"(?<currentValue>.+)\"",
],
matchStrings: ['min_version = "(?<currentValue>.+)"'],
},
{
customType: "regex",
Expand All @@ -89,10 +78,7 @@
datasourceTemplate: "github-releases",
depNameTemplate: "mise",
packageNameTemplate: "jdx/mise",
matchStrings: [
// prettier-ignore
"version: (?<currentValue>.+)",
],
matchStrings: ["version: (?<currentValue>.+)"],
},
],
packageRules: [
Expand Down

0 comments on commit 7fd15d2

Please sign in to comment.