Add .forgejo/workflows/renovate.yml
This commit is contained in:
commit
976932b2fa
1 changed files with 46 additions and 0 deletions
46
.forgejo/workflows/renovate.yml
Normal file
46
.forgejo/workflows/renovate.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: Renovate
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '0 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
validate-config:
|
||||
name: Renovate - Validate Config
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Unset Git Variables
|
||||
run: |
|
||||
unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL
|
||||
|
||||
- name: Validate Renovate Config
|
||||
uses: docker://${{ secrets.CUSTOM_REGISTRY }}/renovate/renovate:37.406.1
|
||||
with:
|
||||
args: renovate-config-validator
|
||||
|
||||
run-renovate:
|
||||
name: Renovate
|
||||
runs-on: docker
|
||||
needs: validate-config
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Unset Git Variables
|
||||
run: |
|
||||
unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL
|
||||
|
||||
- name: Run Renovate
|
||||
uses: docker://${{ secrets.CUSTOM_REGISTRY }}/renovate/renovate:37.406.1
|
||||
with:
|
||||
args: renovate --pr-footer="Did Renovate not find changelogs? No worries! [Click here](https://git.mafyuh.dev/mafyuh/Auto-Homelab/src/branch/main/.github/changelogs.md)"
|
||||
env:
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
GITHUB_COM_TOKEN: ${{ secrets.GIT_COM_TOKEN }}
|
Loading…
Reference in a new issue