Remove github workflows. Move renovate config.

This commit is contained in:
Joseph Hanson 2024-02-23 09:36:55 -06:00
parent c5e4627446
commit 7a7b86616c
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 1 additions and 102 deletions

10
.github/.gitignore vendored
View file

@ -1,10 +0,0 @@
# Ignore everything
/*
# Track certain files and directories
!.gitignore
!renovate.json5
!/workflows/
/workflows/*
!/workflows/**.yaml

View file

@ -1,54 +0,0 @@
---
name: Run Renovate
on:
workflow_call:
inputs:
dryRun:
description: "Dry-Run"
default: "false"
required: false
type: string
renovateLogLevel:
description: "Log-Level"
default: "debug"
required: false
type: string
configurationFile:
description: "Renovate configuration file"
default: ".github/renovate.json5"
required: false
type: string
secrets:
app_id:
description: "App ID of the application used to generate a token"
required: true
app_private_key:
description: "Private key of the application used to generate a token"
required: true
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.app_id }}
private_key: ${{ secrets.app_private_key }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: '${{ steps.generate-token.outputs.token }}'
- name: Renovate
uses: renovatebot/github-action@v40.1.1
env:
DRY_RUN: ${{ inputs.dryRun }}
LOG_LEVEL: ${{ inputs.renovateLogLevel }}
with:
configurationFile: ${{ inputs.configurationFile }}
token: '${{ steps.generate-token.outputs.token }}'

View file

@ -1,37 +0,0 @@
---
name: Schedule - Renovate
on:
workflow_dispatch:
inputs:
dryRun:
description: "Dry-Run"
default: false
required: false
type: boolean
logLevel:
description: "Log-Level"
default: "debug"
required: false
schedule:
- cron: "0 * * * *"
push:
branches:
- main
paths:
- ".github/renovate.json5"
- ".github/renovate/**.json"
- ".github/renovate/**.json5"
- ".github/workflows/schedule-renovate.yaml"
jobs:
renovate:
name: Renovate
uses: jahanson/vyos-config/.github/workflows/run-renovate.yaml@main
with:
configurationFile: ".github/renovate.json5"
dryRun: ${{ inputs.dryRun || 'false' }}
renovateLogLevel: ${{ inputs.logLevel || 'debug' }}
secrets:
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}

2
.gitignore vendored
View file

@ -15,4 +15,4 @@
!containers/
# CI
!.github/
!renovate.json5