renovate-config/.forgejo/workflows/renovate.yaml

40 lines
1.2 KiB
YAML

on:
schedule:
- cron: '*/30 * * * *'
push:
branches: ["main"]
paths: [".forgejo/workflows/renovate.yaml"]
# workflow_dispatch:
# inputs:
# dryRun:
# description: Dry Run
# default: "false"
# required: false
# env:
# RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
jobs:
renovate:
name: Renovate
runs-on: docker
container:
image: ghcr.io/renovatebot/renovate:37.440.7@sha256:1ee424e0ed4d8e64e5bb2d442d6bc72b3809bb9d0cf804f4b7180caa47d6002a
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
show-progress: false
- name: Write ssh key
id: sshkey
uses: https://github.com/timheuer/base64-to-file@adaa40c0c581f276132199d4cf60afa07ce60eac # v1
with:
encodedString: "${{ secrets.SSH_USER }}"
fileName: id_ed25519
fileDir: ~/.ssh
- name: Renovate
uses: ./.forgejo/actions/renovate
with:
endpoint: https://git.hsn.dev/api/v1/
token: ${{ secrets.RENOVATE_TOKEN }}
github-token: ${{ secrets.GH_TOKEN }}
args: --platform gitea --autodiscover
save-cache: true