2024-03-30 11:05:24 -04:00
|
|
|
#
|
2024-04-08 03:16:51 -04:00
|
|
|
# Runs every 2 hours, but Renovate is limited to create new PR before 4am.
|
|
|
|
# See renovate.json for more settings.
|
|
|
|
# Automerge is enabled for Renovate PR's but need to be approved before.
|
2024-03-30 11:05:24 -04:00
|
|
|
#
|
2024-03-25 05:31:15 -04:00
|
|
|
name: renovate
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'renovate/**' # self-test updates
|
|
|
|
schedule:
|
2024-04-08 03:16:51 -04:00
|
|
|
- cron: '0 0/2 * * *'
|
2024-03-25 05:31:15 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
RENOVATE_DRY_RUN: ${{ (github.event_name != 'schedule' && github.ref_name != github.event.repository.default_branch) && 'full' || '' }}
|
|
|
|
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
renovate:
|
|
|
|
if: ${{ secrets.RENOVATE_TOKEN != '' }}
|
|
|
|
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-05-08 16:05:21 -04:00
|
|
|
image: ghcr.io/visualon/renovate:37.351.2
|
2024-03-25 05:31:15 -04:00
|
|
|
|
|
|
|
steps:
|
2024-04-18 07:22:51 -04:00
|
|
|
- name: Load renovate repo cache
|
|
|
|
uses: https://code.forgejo.org/actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2024-03-25 05:31:15 -04:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
.tmp/cache/renovate/repository
|
|
|
|
key: repo-cache-${{ github.run_id }}
|
|
|
|
restore-keys: |
|
|
|
|
repo-cache-
|
|
|
|
|
2024-04-18 14:08:27 -04:00
|
|
|
- name: Run renovate
|
|
|
|
run: renovate
|
2024-03-25 05:31:15 -04:00
|
|
|
env:
|
|
|
|
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_COM_TOKEN }}
|
|
|
|
LOG_LEVEL: debug
|
|
|
|
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
|
|
|
|
RENOVATE_ENDPOINT: ${{ github.server_url }}
|
|
|
|
RENOVATE_PLATFORM: gitea
|
|
|
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
|
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
|
|
RENOVATE_GIT_AUTHOR: 'Renovate Bot <forgejo-renovate-action@forgejo.org>'
|
|
|
|
|
|
|
|
GIT_AUTHOR_NAME: 'Renovate Bot'
|
|
|
|
GIT_AUTHOR_EMAIL: 'forgejo-renovate-action@forgejo.org'
|
|
|
|
GIT_COMMITTER_NAME: 'Renovate Bot'
|
|
|
|
GIT_COMMITTER_EMAIL: 'forgejo-renovate-action@forgejo.org'
|
|
|
|
|
|
|
|
- name: Save renovate repo cache
|
2024-04-08 02:47:02 -04:00
|
|
|
if: always() && env.RENOVATE_DRY_RUN != 'full'
|
2024-03-25 07:56:20 -04:00
|
|
|
uses: https://code.forgejo.org/actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
|
2024-03-25 05:31:15 -04:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
.tmp/cache/renovate/repository
|
|
|
|
key: repo-cache-${{ github.run_id }}
|