2024-05-15 08:59:54 -05:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '*/30 * * * *'
|
2024-07-26 20:53:52 -05:00
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
paths: [".forgejo/workflows/renovate.yaml"]
|
2024-10-11 09:48:08 -05:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
dryRun:
|
2024-10-11 09:49:51 -05:00
|
|
|
default: false
|
2024-10-11 09:48:08 -05:00
|
|
|
description: Dry Run
|
|
|
|
required: false
|
2024-10-11 09:49:51 -05:00
|
|
|
type: boolean
|
2024-10-11 09:48:08 -05:00
|
|
|
env:
|
|
|
|
RENOVATE_DRY_RUN: "${{ inputs.dryRun == true }}"
|
2024-05-15 08:59:54 -05:00
|
|
|
jobs:
|
|
|
|
renovate:
|
|
|
|
name: Renovate
|
2024-11-05 08:57:46 -06:00
|
|
|
runs-on: docker-x86_64
|
2024-05-15 08:59:54 -05:00
|
|
|
container:
|
2024-11-24 18:02:10 -06:00
|
|
|
image: ghcr.io/renovatebot/renovate:39.28.0@sha256:7cf419a3177d4cff065f1fa589c80b603c80fa7c3e1792ef1bcad8267be67325
|
2024-05-15 08:59:54 -05:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-10-23 11:02:44 -05:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2024-05-15 08:59:54 -05:00
|
|
|
with:
|
|
|
|
show-progress: false
|
2024-07-29 21:42:01 -05:00
|
|
|
- name: setup .ssh directory
|
|
|
|
run: mkdir -p /home/ubuntu/.ssh && chmod 700 /home/ubuntu/.ssh
|
2024-07-26 20:49:47 -05:00
|
|
|
- name: Write ssh key
|
|
|
|
id: sshkey
|
2024-08-01 04:02:29 -05:00
|
|
|
uses: https://github.com/timheuer/base64-to-file@adaa40c0c581f276132199d4cf60afa07ce60eac # v1
|
|
|
|
# uses: timheuer/base64-to-file@adaa40c0c581f276132199d4cf60afa07ce60eac # v1
|
2024-07-26 20:49:47 -05:00
|
|
|
with:
|
|
|
|
encodedString: "${{ secrets.SSH_USER }}"
|
|
|
|
fileName: id_ed25519
|
2024-07-29 21:42:01 -05:00
|
|
|
fileDir: /home/ubuntu/.ssh
|
|
|
|
- name: chmod id_ed25519
|
|
|
|
run: chmod 600 /home/ubuntu/.ssh/id_ed25519
|
2024-05-15 08:59:54 -05:00
|
|
|
- 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
|