41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: renovate
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "@hourly"
|
|
push:
|
|
|
|
jobs:
|
|
renovate:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/renovatebot/renovate:latest
|
|
steps:
|
|
- uses: https://git.kjan.de/actions/checkout@v4
|
|
- name: Load renovate repo cache
|
|
uses: https://data.forgejo.org/actions/cache/restore@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
|
|
with:
|
|
path: |
|
|
.tmp/cache/renovate/repository
|
|
.tmp/cache/renovate/renovate-cache-sqlite
|
|
.tmp/osv
|
|
key: repo-cache-${{ github.run_id }}
|
|
restore-keys: |
|
|
repo-cache-
|
|
- run: renovate
|
|
env:
|
|
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
|
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
|
RENOVATE_CONFIG_FILE: "config.js" # replace it with your config.js path
|
|
LOG_LEVEL: "debug"
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # your Revonate bot token
|
|
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
- name: Save renovate repo cache
|
|
if: always() && env.RENOVATE_DRY_RUN != 'full'
|
|
uses: https://data.forgejo.org/actions/cache/save@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
|
|
with:
|
|
path: |
|
|
.tmp/cache/renovate/repository
|
|
.tmp/cache/renovate/renovate-cache-sqlite
|
|
.tmp/osv
|
|
key: repo-cache-${{ github.run_id }}
|