Remove github workflows. Move renovate config.
This commit is contained in:
parent
c5e4627446
commit
7a7b86616c
5 changed files with 1 additions and 102 deletions
10
.github/.gitignore
vendored
10
.github/.gitignore
vendored
|
@ -1,10 +0,0 @@
|
||||||
# Ignore everything
|
|
||||||
/*
|
|
||||||
|
|
||||||
# Track certain files and directories
|
|
||||||
!.gitignore
|
|
||||||
!renovate.json5
|
|
||||||
|
|
||||||
!/workflows/
|
|
||||||
/workflows/*
|
|
||||||
!/workflows/**.yaml
|
|
54
.github/workflows/run-renovate.yaml
vendored
54
.github/workflows/run-renovate.yaml
vendored
|
@ -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 }}'
|
|
37
.github/workflows/schedule-renovate.yaml
vendored
37
.github/workflows/schedule-renovate.yaml
vendored
|
@ -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
2
.gitignore
vendored
|
@ -15,4 +15,4 @@
|
||||||
!containers/
|
!containers/
|
||||||
|
|
||||||
# CI
|
# CI
|
||||||
!.github/
|
!renovate.json5
|
||||||
|
|
Reference in a new issue