diff --git a/.github/.gitignore b/.github/.gitignore deleted file mode 100644 index 2109756..0000000 --- a/.github/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Ignore everything -/* - -# Track certain files and directories -!.gitignore -!renovate.json5 - -!/workflows/ -/workflows/* -!/workflows/**.yaml diff --git a/.github/workflows/run-renovate.yaml b/.github/workflows/run-renovate.yaml deleted file mode 100644 index 4f59967..0000000 --- a/.github/workflows/run-renovate.yaml +++ /dev/null @@ -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 }}' diff --git a/.github/workflows/schedule-renovate.yaml b/.github/workflows/schedule-renovate.yaml deleted file mode 100644 index dad043b..0000000 --- a/.github/workflows/schedule-renovate.yaml +++ /dev/null @@ -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 }} diff --git a/.gitignore b/.gitignore index 022604e..a0ec2a6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,4 @@ !containers/ # CI -!.github/ +!renovate.json5 diff --git a/.github/renovate.json5 b/renovate.json5 similarity index 100% rename from .github/renovate.json5 rename to renovate.json5