This commit is contained in:
parent
343448f466
commit
2fb1a240a0
3 changed files with 10 additions and 5 deletions
|
@ -39,11 +39,11 @@ runs:
|
||||||
GITHUB_COM_TOKEN: ${{ inputs.github-token }}
|
GITHUB_COM_TOKEN: ${{ inputs.github-token }}
|
||||||
LOG_LEVEL: debug
|
LOG_LEVEL: debug
|
||||||
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
|
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
|
||||||
RENOVATE_ENDPOINT: ${{ inputs.endpoint }}
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
||||||
|
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
||||||
RENOVATE_PLATFORM: gitea
|
RENOVATE_PLATFORM: gitea
|
||||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||||
RENOVATE_TOKEN: ${{ inputs.token }}
|
RENOVATE_TOKEN: ${{ inputs.token }}
|
||||||
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
|
|
||||||
|
|
||||||
GIT_AUTHOR_NAME: 'Renovate Bot'
|
GIT_AUTHOR_NAME: 'Renovate Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
|
||||||
|
|
|
@ -13,6 +13,8 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
env:
|
env:
|
||||||
RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
|
RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
|
||||||
|
DOCKER_USERNAME: "${{ secrets.DOCKER_USERNAME }}"
|
||||||
|
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
|
||||||
jobs:
|
jobs:
|
||||||
renovate:
|
renovate:
|
||||||
name: Renovate
|
name: Renovate
|
||||||
|
@ -42,5 +44,8 @@ jobs:
|
||||||
endpoint: https://git.hsn.dev/api/v1/
|
endpoint: https://git.hsn.dev/api/v1/
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
github-token: ${{ secrets.GH_TOKEN }}
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
args: --platform gitea --autodiscover
|
args: >-
|
||||||
|
--platform gitea
|
||||||
|
--autodiscover
|
||||||
|
--host-rules='[{"matchHost":"docker.io","username":"${{ env.DOCKER_USERNAME }}","password":"${{ env.DOCKER_PASSWORD }}"}]'
|
||||||
save-cache: true
|
save-cache: true
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
"semanticCommits": "enabled",
|
"semanticCommits": "enabled",
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "use fix scope for renovate updates",
|
"description": "Use fix scope for renovate updates",
|
||||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||||
"semanticCommitType": "fix"
|
"semanticCommitType": "fix"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"automergeType": "branch", // Directly merge to the branch without PR
|
"automergeType": "branch",
|
||||||
"description": "Automerge renovate updates",
|
"description": "Automerge renovate updates",
|
||||||
"ignoreTests": true,
|
"ignoreTests": true,
|
||||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
Loading…
Reference in a new issue