Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 43s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m18s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 5m16s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 6m19s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 6m2s
Documentation / Build and Deploy Documentation (push) Successful in 1m3s
Checks / Prek / Pre-commit & Formatting (push) Successful in 2m1s
Checks / Prek / Clippy and Cargo Tests (push) Has been cancelled
Release Docker Image / Build linux-amd64 (release) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (release) (push) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (push) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (push) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 20s
Maintenance / Renovate / Renovate (push) Successful in 1m43s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 12m49s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 12m42s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 16s
132 lines
3.6 KiB
YAML
132 lines
3.6 KiB
YAML
name: Maintenance / Renovate
|
|
|
|
enable-email-notifications: true
|
|
|
|
on:
|
|
schedule:
|
|
# Run at 5am UTC daily to avoid late-night dev
|
|
- cron: '0 5 * * *'
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
dryRun:
|
|
description: 'Dry run mode'
|
|
required: false
|
|
default: ''
|
|
type: choice
|
|
options:
|
|
- ''
|
|
- 'extract'
|
|
- 'lookup'
|
|
- 'full'
|
|
logLevel:
|
|
description: 'Log level'
|
|
required: false
|
|
default: 'info'
|
|
type: choice
|
|
options:
|
|
- 'debug'
|
|
- 'info'
|
|
- 'warning'
|
|
- 'critical'
|
|
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
# Re-run when config changes
|
|
- '.forgejo/workflows/renovate.yml'
|
|
- 'renovate.json'
|
|
|
|
jobs:
|
|
renovate:
|
|
name: Renovate
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/renovatebot/renovate:41.146.4@sha256:bb70194b7405faf10a6f279b60caa10403a440ba37d158c5a4ef0ae7b67a0f92
|
|
options: --tmpfs /tmp:exec
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
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: actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/tmp/renovate/cache/renovate/repository
|
|
key: renovate-repo-cache-${{ github.run_id }}
|
|
restore-keys: |
|
|
renovate-repo-cache-
|
|
|
|
- name: Restore renovate package cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/tmp/renovate/cache/renovate/renovate-cache-sqlite
|
|
key: renovate-package-cache-${{ github.run_id }}
|
|
restore-keys: |
|
|
renovate-package-cache-
|
|
|
|
- name: Restore renovate OSV cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/tmp/osv
|
|
key: renovate-osv-cache-${{ github.run_id }}
|
|
restore-keys: |
|
|
renovate-osv-cache-
|
|
|
|
- name: Self-hosted Renovate
|
|
run: renovate
|
|
env:
|
|
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
|
RENOVATE_DRY_RUN: ${{ inputs.dryRun || 'false' }}
|
|
|
|
RENOVATE_PLATFORM: forgejo
|
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
RENOVATE_AUTODISCOVER: 'false'
|
|
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
|
|
|
RENOVATE_GIT_TIMEOUT: 60000
|
|
|
|
RENOVATE_REQUIRE_CONFIG: 'required'
|
|
RENOVATE_ONBOARDING: 'false'
|
|
RENOVATE_INHERIT_CONFIG: 'true'
|
|
|
|
RENOVATE_GITHUB_TOKEN_WARN: 'false'
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
GITHUB_COM_TOKEN: ${{ secrets.GH_PUBLIC_RO || secrets.GH_TOKEN }}
|
|
|
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
|
RENOVATE_X_SQLITE_PACKAGE_CACHE: 'true'
|
|
OSV_OFFLINE_ROOT_DIR: /tmp/osv
|
|
|
|
- name: Save renovate repo cache
|
|
if: always()
|
|
uses:
|
|
actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
/tmp/renovate/cache/renovate/repository
|
|
key: renovate-repo-cache-${{ github.run_id }}
|
|
|
|
- name: Save renovate package cache
|
|
if: always()
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
/tmp/renovate/cache/renovate/renovate-cache-sqlite
|
|
key: renovate-package-cache-${{ github.run_id }}
|
|
|
|
- name: Save renovate OSV cache
|
|
if: always()
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
/tmp/osv
|
|
key: renovate-osv-cache-${{ github.run_id }}
|