Move renovate to separate repo.

This commit is contained in:
Joseph Hanson 2024-05-15 08:59:46 -05:00
parent 19b3449ba6
commit d4c8a38a88
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 0 additions and 82 deletions

View file

@ -1,59 +0,0 @@
# action.yml
name: renovate
description: 'renovate with caching'
inputs:
endpoint:
description: 'Renovate Endpoint'
required: true
token:
description: 'Renovate Token'
required: true
github-token:
description: 'GitHub Token'
required: true
args:
description: 'Renovate Args'
required: false
default: ''
save-cache:
description: 'Save cache'
required: false
default: 'false'
runs:
using: 'composite'
steps:
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.tmp/cache/renovate/repository
key: repo-cache-${{ inputs.endpoint }}-${{ github.run_id }}
restore-keys: |
repo-cache-${{ inputs.endpoint }}-
- run: |
renovate ${{ inputs.args }}
shell: bash
env:
GITHUB_COM_TOKEN: ${{ inputs.github-token }}
LOG_LEVEL: debug
RENOVATE_BASE_DIR: ${{ github.workspace }}/.tmp
RENOVATE_ENDPOINT: ${{ inputs.endpoint }}
RENOVATE_PLATFORM: gitea
RENOVATE_REPOSITORY_CACHE: 'enabled'
RENOVATE_TOKEN: ${{ inputs.token }}
RENOVATE_GIT_AUTHOR: 'Renovate Bot <smeagol@hsn.dev>'
GIT_AUTHOR_NAME: 'Renovate Bot'
GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev'
GIT_COMMITTER_NAME: 'Renovate Bot'
GIT_COMMITTER_EMAIL: 'smeagol@hsn.dev'
- name: Save renovate repo cache
if: always() && inputs.save-cache == 'true'
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.tmp/cache/renovate/repository
key: repo-cache-${{ inputs.endpoint }}-${{ github.run_id }}

View file

@ -1,23 +0,0 @@
on:
schedule:
- cron: '*/30 * * * *'
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
container:
image: ghcr.io/renovatebot/renovate:37.363.8@sha256:d5d20fda77bffb65bb4099389d6cb064e1e06b085bc547e10330bf82317c9693
steps:
- name: Checkout
uses: actions/checkout@v3
with:
show-progress: false
- name: Renovate
uses: ./.forgejo/actions/renovate
with:
endpoint: https://git.hsn.dev/api/v1/
token: ${{ secrets.RENOVATE_TOKEN }}
github-token: ${{ secrets.GH_TOKEN }}
args: ${{ github.repository }} --platform gitea # --autodiscover
save-cache: true