mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-03 16:50:56 +00:00
fix(ci): Configure Renovate for Forgejo platform
- Set platform to 'forgejo' with proper API endpoint - Use environment variables for all Renovate configuration - Add git timeout and disable GitHub token warnings - Move PR limit configuration to workflow
This commit is contained in:
parent
731761f0fc
commit
14a4b24fc5
2 changed files with 22 additions and 26 deletions
|
@ -10,21 +10,22 @@ on:
|
||||||
dryRun:
|
dryRun:
|
||||||
description: 'Dry run mode'
|
description: 'Dry run mode'
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: null
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- 'true'
|
- null
|
||||||
- 'false'
|
- 'extract'
|
||||||
|
- 'lookup'
|
||||||
|
- 'full'
|
||||||
logLevel:
|
logLevel:
|
||||||
description: 'Log level'
|
description: 'Log level'
|
||||||
required: false
|
required: false
|
||||||
default: 'info'
|
default: 'info'
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- 'debug'
|
|
||||||
- 'info'
|
- 'info'
|
||||||
- 'warn'
|
- 'warning'
|
||||||
- 'error'
|
- 'critical'
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -42,23 +43,20 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: https://github.com/renovatebot/github-action@v40.1.0
|
uses: https://github.com/renovatebot/github-action@v40.1.0
|
||||||
with:
|
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
|
||||||
configurationFile: renovate.json
|
|
||||||
env:
|
env:
|
||||||
# Platform configuration - Forgejo uses Gitea-compatible API
|
|
||||||
RENOVATE_PLATFORM: gitea
|
|
||||||
RENOVATE_ENDPOINT: ${{ github.server_url }}/api/v1
|
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
||||||
|
|
||||||
# Target repository
|
|
||||||
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
|
||||||
|
|
||||||
# Runtime behaviour
|
|
||||||
RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }}
|
|
||||||
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
||||||
|
RENOVATE_AUTODISCOVER: 'false'
|
||||||
# Git author for commits - configured via repository variables
|
RENOVATE_BINARY_SOURCE: 'install'
|
||||||
RENOVATE_GIT_AUTHOR: '${{ vars.RENOVATE_AUTHOR }}'
|
RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }}
|
||||||
|
RENOVATE_ENDPOINT: ${{ github.server_url }}/api/v1
|
||||||
|
RENOVATE_GIT_TIMEOUT: 60000
|
||||||
|
RENOVATE_GIT_URL: 'endpoint'
|
||||||
|
RENOVATE_GITHUB_TOKEN_WARN: 'false'
|
||||||
|
RENOVATE_ONBOARDING: 'false'
|
||||||
|
RENOVATE_PLATFORM: 'forgejo'
|
||||||
|
RENOVATE_PR_COMMITS_PER_RUN_LIMIT: 3
|
||||||
|
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
||||||
|
RENOVATE_REQUIRE_CONFIG: 'required'
|
||||||
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
|
@ -58,7 +58,5 @@
|
||||||
"matchUpdateTypes": ["patch"],
|
"matchUpdateTypes": ["patch"],
|
||||||
"groupName": "rust-patch-updates"
|
"groupName": "rust-patch-updates"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"prConcurrentLimit": 3,
|
|
||||||
"prHourlyLimit": 2
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue