Merge pull request 'Update renovate configs' (#2780) from viceice/forgejo:chore/renovate into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2780 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
eb3ea82ee6
2 changed files with 10 additions and 14 deletions
|
@ -20,7 +20,7 @@ jobs:
|
||||||
image: 'ghcr.io/visualon/renovate:37.269.3@sha256:4fb1684ec9e10592b6c4726906d353f88097fbb584748150043949a5aa5ca085'
|
image: 'ghcr.io/visualon/renovate:37.269.3@sha256:4fb1684ec9e10592b6c4726906d353f88097fbb584748150043949a5aa5ca085'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
- uses: https://code.forgejo.org/actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.tmp/cache/renovate/repository
|
.tmp/cache/renovate/repository
|
||||||
|
@ -46,7 +46,7 @@ jobs:
|
||||||
|
|
||||||
- name: Save renovate repo cache
|
- name: Save renovate repo cache
|
||||||
if: always() && env.RENOVATE_DRY_RUN == 'true'
|
if: always() && env.RENOVATE_DRY_RUN == 'true'
|
||||||
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
uses: https://code.forgejo.org/actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.tmp/cache/renovate/repository
|
.tmp/cache/renovate/repository
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"extends": ["config:best-practices", ":approveMajorUpdates"],
|
"extends": ["config:best-practices", ":approveMajorUpdates"],
|
||||||
"ignorePresets": [":semanticPrefixFixDepsChoreOthers"],
|
"ignorePresets": [":semanticPrefixFixDepsChoreOthers"],
|
||||||
"semanticCommits": "disabled",
|
"semanticCommits": "disabled",
|
||||||
|
"postUpdateOptions": ["gomodUpdateImportPaths", "npmDedupe"],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "Require approval for go and python minor version",
|
"description": "Require approval for go and python minor version",
|
||||||
|
@ -22,25 +23,20 @@
|
||||||
"matchDatasources": ["docker"],
|
"matchDatasources": ["docker"],
|
||||||
"matchDepNames": ["ghcr.io/visualon/renovate"],
|
"matchDepNames": ["ghcr.io/visualon/renovate"],
|
||||||
"extends": ["schedule:daily"]
|
"extends": ["schedule:daily"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Disable actions/cascading-pr for now <https://github.com/renovatebot/renovate/issues/28120>",
|
||||||
|
"matchDepNames": ["actions/cascading-pr"],
|
||||||
|
"matchManagers": ["github-actions"],
|
||||||
|
"enabled": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
|
||||||
"description": "Update docker images in forgejo workflows",
|
|
||||||
"customType": "regex",
|
|
||||||
"fileMatch": ["^.forgejo/workflows/.+\\.yml$"],
|
|
||||||
"matchStrings": [
|
|
||||||
"\\s+image:\\s+['\"]?(?<depName>.+?):(?<currentValue>.+?)['\"]?\\s"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "docker"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Update go-version in forgejo workflows",
|
"description": "Update go-version in forgejo workflows",
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"fileMatch": ["^.forgejo/workflows/.+\\.yml$"],
|
"fileMatch": ["^.forgejo/workflows/.+\\.yml$"],
|
||||||
"matchStrings": [
|
"matchStrings": ["\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"],
|
||||||
"\\s+go-version: ['\"]?(?<currentValue>.+?)['\"]?\\s"
|
|
||||||
],
|
|
||||||
"depNameTemplate": "go",
|
"depNameTemplate": "go",
|
||||||
"datasourceTemplate": "golang-version",
|
"datasourceTemplate": "golang-version",
|
||||||
"versioningTemplate": "go-mod-directive"
|
"versioningTemplate": "go-mod-directive"
|
||||||
|
|
Loading…
Reference in a new issue