2025-01-03 11:46:46 +00:00
|
|
|
name: Run Renovate
|
|
|
|
|
|
|
|
on:
|
2025-01-03 11:59:50 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "13 * * * *"
|
2025-01-03 15:55:49 +01:00
|
|
|
workflow_dispatch:
|
2025-01-03 11:46:46 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
renovate:
|
|
|
|
runs-on: antville
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Run Renovate
|
2025-01-03 16:20:01 +01:00
|
|
|
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
|
|
|
|
# debug | info | warn | error | fatal
|
|
|
|
run: LOG_LEVEL=info npx renovate
|
2025-01-03 11:46:46 +00:00
|
|
|
env:
|
|
|
|
# Renovate is using this token to retrieve release notes
|
|
|
|
GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }}
|
2025-01-03 15:58:31 +01:00
|
|
|
# Autodiscover is better suited for an extra repo running Renovate on all desired repos
|
|
|
|
#RENOVATE_AUTODISCOVER: 'true'
|
2025-01-03 11:46:46 +00:00
|
|
|
RENOVATE_CONFIG_FILE: renovate.json
|
|
|
|
RENOVATE_ENDPOINT: ${{ github.api_url }}
|
|
|
|
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
|
2025-01-03 15:50:47 +01:00
|
|
|
#RENOVATE_GIT_IGNORED_AUTHORS:
|
2025-01-03 11:46:46 +00:00
|
|
|
# - 29139614+renovate[bot]@users.noreply.github.com
|
|
|
|
RENOVATE_IGNORE_PR_AUTHOR: 'true'
|
|
|
|
RENOVATE_LOG_FILE: renovate-log.ndjson
|
|
|
|
RENOVATE_LOG_FILE_LEVEL: debug
|
|
|
|
RENOVATE_PLATFORM: gitea
|
2025-01-03 15:58:31 +01:00
|
|
|
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
2025-01-03 11:46:46 +00:00
|
|
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
|
|
|
# github.token is not working here, it lacks some permissions required by Renovate
|
2025-01-03 11:59:50 +00:00
|
|
|
RENOVATE_TOKEN: ${{ secrets.renovate_token }}
|
2025-01-03 11:46:46 +00:00
|
|
|
|
|
|
|
- name: Save log file
|
2025-01-03 15:50:47 +01:00
|
|
|
# FIXME: v4 of this action causes an error on Forgejo (“You must configure a GitHub token”)
|
|
|
|
uses: actions/upload-artifact@v3
|
2025-01-03 16:06:15 +01:00
|
|
|
if: always()
|
2025-01-03 11:46:46 +00:00
|
|
|
with:
|
|
|
|
name: renovate-log.ndjson
|
|
|
|
path: renovate-log.ndjson
|