mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 23:32:49 +02:00
Compare commits
3 commits
97b7f06f7f
...
5cce024841
Author | SHA1 | Date | |
---|---|---|---|
|
5cce024841 | ||
|
e87c461b8d |
||
|
b934898f51 |
3 changed files with 119 additions and 69 deletions
|
@ -26,3 +26,7 @@ max_line_length = 98
|
||||||
[*.yml]
|
[*.yml]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
|
|
@ -39,24 +39,73 @@ jobs:
|
||||||
renovate:
|
renovate:
|
||||||
name: Renovate
|
name: Renovate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/renovatebot/renovate:41
|
||||||
|
options: --tmpfs /tmp:exec
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
show-progress: false
|
||||||
|
|
||||||
|
- name: print node heap
|
||||||
|
run: /usr/local/renovate/node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
|
||||||
|
|
||||||
|
- name: Restore renovate repo cache
|
||||||
|
uses: https://github.com/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/tmp/renovate/cache/renovate/repository
|
||||||
|
key: repo-cache-${{ github.run_id }}
|
||||||
|
restore-keys: |
|
||||||
|
repo-cache-
|
||||||
|
|
||||||
|
- name: Restore renovate package cache
|
||||||
|
uses: https://github.com/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/tmp/renovate/cache/renovate/renovate-cache-sqlite
|
||||||
|
key: package-cache-${{ github.run_id }}
|
||||||
|
restore-keys: |
|
||||||
|
package-cache-
|
||||||
|
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: https://github.com/renovatebot/github-action@v40.3.6
|
uses: https://github.com/renovatebot/github-action@v43.0.9
|
||||||
env:
|
env:
|
||||||
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
||||||
RENOVATE_AUTODISCOVER: 'false'
|
|
||||||
RENOVATE_BINARY_SOURCE: 'install'
|
|
||||||
RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }}
|
RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }}
|
||||||
RENOVATE_ENDPOINT: ${{ github.server_url }}/api/v1
|
|
||||||
RENOVATE_GIT_TIMEOUT: 60000
|
RENOVATE_PLATFORM: forgejo
|
||||||
RENOVATE_GIT_URL: 'endpoint'
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
||||||
RENOVATE_GITHUB_TOKEN_WARN: 'false'
|
RENOVATE_AUTODISCOVER: 'false'
|
||||||
RENOVATE_ONBOARDING: 'false'
|
|
||||||
RENOVATE_PLATFORM: 'forgejo'
|
|
||||||
RENOVATE_PR_COMMITS_PER_RUN_LIMIT: 3
|
|
||||||
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
||||||
|
|
||||||
|
RENOVATE_GIT_TIMEOUT: 60000
|
||||||
|
|
||||||
RENOVATE_REQUIRE_CONFIG: 'required'
|
RENOVATE_REQUIRE_CONFIG: 'required'
|
||||||
|
RENOVATE_ONBOARDING: 'false'
|
||||||
|
|
||||||
|
RENOVATE_PR_COMMITS_PER_RUN_LIMIT: 3
|
||||||
|
|
||||||
|
RENOVATE_GITHUB_TOKEN_WARN: 'false'
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
GITHUB_COM_TOKEN: ${{ secrets.GH_PUBLIC_RO }}
|
||||||
|
|
||||||
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||||
|
RENOVATE_X_SQLITE_PACKAGE_CACHE: true
|
||||||
|
|
||||||
|
- name: Save renovate repo cache
|
||||||
|
if: always() && env.RENOVATE_DRY_RUN != 'full'
|
||||||
|
uses: https://github.com/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/tmp/renovate/cache/renovate/repository
|
||||||
|
key: repo-cache-${{ github.run_id }}
|
||||||
|
|
||||||
|
- name: Save renovate package cache
|
||||||
|
if: always() && env.RENOVATE_DRY_RUN != 'full'
|
||||||
|
uses: https://github.com/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/tmp/renovate/cache/renovate/renovate-cache-sqlite
|
||||||
|
key: package-cache-${{ github.run_id }}
|
||||||
|
|
|
@ -1,21 +1,14 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": ["config:recommended"],
|
||||||
"config:recommended"
|
|
||||||
],
|
|
||||||
"lockFileMaintenance": {
|
"lockFileMaintenance": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"schedule": [
|
"schedule": ["at any time"]
|
||||||
"at any time"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"nix": {
|
"nix": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"labels": [
|
"labels": ["Dependencies", "Dependencies/Renovate"],
|
||||||
"Dependencies",
|
|
||||||
"Dependencies/Renovate"
|
|
||||||
],
|
|
||||||
"ignoreDeps": [
|
"ignoreDeps": [
|
||||||
"tikv-jemallocator",
|
"tikv-jemallocator",
|
||||||
"tikv-jemalloc-sys",
|
"tikv-jemalloc-sys",
|
||||||
|
@ -27,11 +20,11 @@
|
||||||
],
|
],
|
||||||
"github-actions": {
|
"github-actions": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"fileMatch": [
|
"managerFilePatterns": [
|
||||||
"(^|/)\\.forgejo/workflows/[^/]+\\.ya?ml$",
|
"/(^|/)\\.forgejo/workflows/[^/]+\\.ya?ml$/",
|
||||||
"(^|/)\\.forgejo/actions/[^/]+/action\\.ya?ml$",
|
"/(^|/)\\.forgejo/actions/[^/]+/action\\.ya?ml$/",
|
||||||
"(^|/)\\.github/workflows/[^/]+\\.ya?ml$",
|
"/(^|/)\\.github/workflows/[^/]+\\.ya?ml$/",
|
||||||
"(^|/)\\.github/actions/[^/]+/action\\.ya?ml$"
|
"/(^|/)\\.github/actions/[^/]+/action\\.ya?ml$/"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
|
@ -43,7 +36,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Group Rust toolchain updates into a single PR",
|
"description": "Group Rust toolchain updates into a single PR",
|
||||||
"matchManagers": ["regex"],
|
"matchManagers": ["custom.regex"],
|
||||||
"matchPackageNames": ["rust", "rustc", "cargo"],
|
"matchPackageNames": ["rust", "rustc", "cargo"],
|
||||||
"groupName": "rust-toolchain"
|
"groupName": "rust-toolchain"
|
||||||
},
|
},
|
||||||
|
@ -57,6 +50,10 @@
|
||||||
"matchManagers": ["cargo"],
|
"matchManagers": ["cargo"],
|
||||||
"matchUpdateTypes": ["patch"],
|
"matchUpdateTypes": ["patch"],
|
||||||
"groupName": "rust-patch-updates"
|
"groupName": "rust-patch-updates"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchManagers": ["cargo"],
|
||||||
|
"prConcurrentLimit": 5
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue