This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/.github/workflows/run-renovate.yaml

55 lines
1.4 KiB
YAML
Raw Normal View History

2023-05-03 08:53:33 -05:00
---
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
2023-05-03 08:53:33 -05:00
id: generate-token
with:
app_id: ${{ secrets.app_id }}
private_key: ${{ secrets.app_private_key }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2023-05-03 08:53:33 -05:00
with:
2023-05-03 17:09:06 -05:00
token: '${{ steps.generate-token.outputs.token }}'
2023-05-03 08:53:33 -05:00
- name: Renovate
uses: renovatebot/github-action@v39.2.3
2023-05-03 08:53:33 -05:00
env:
DRY_RUN: ${{ inputs.dryRun }}
LOG_LEVEL: ${{ inputs.renovateLogLevel }}
with:
configurationFile: ${{ inputs.configurationFile }}
2023-05-03 17:12:14 -05:00
token: '${{ steps.generate-token.outputs.token }}'