Skip to content

chore(ci): renovate-config-validator in workflow #939

chore(ci): renovate-config-validator in workflow

chore(ci): renovate-config-validator in workflow #939

Workflow file for this run

name: Renovate
# Run on pull requests, cronjob or manually (dispatch)
on:
pull_request:
schedule: [cron: "0 10 * * *"] # 2 AM PST = 10 AM UDT
workflow_dispatch:
inputs:
repos: # Optional input
description: "List of repos (org/repo)"
type: string
required: false
log_level: # Default input
description: "Log level"
default: "INFO"
type: choice
required: true
options: ["INFO", "WARNING", "DEBUG"]
# Cancel any other workflows (PR, cron or manual)
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
run:
env:
pr_set: bcgov/renovate-config bcgov/quickstart-openshift
permissions:
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
# Run Renovate, dry run
- name: Renovate Dry Run
run: |
# Process repo list and add to config
IFS=', ' read -a INPUT <<< "${{ inputs.repos || env.pr_set }}"
for r in "${INPUT[@]}"; do
REPOS+="\"$r\","
done
REPOS=${REPOS%,*}
cat <<< $(jq '. | .repositories = ['${REPOS}']' renovate.json) > renovate.json
# Dry run
cat <<< $(jq '.+= {"dryRun": "full"}' renovate.json) > renovate.json
# Run Renovate
- name: Run Renovate
uses: renovatebot/github-action@v40.0.3
env:
LOG_LEVEL: ${{ inputs.log_level || 'INFO' }}
with:
configurationFile: renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
validate:
runs-on: ubuntu-22.04
needs: run-renovate

Check failure on line 61 in .github/workflows/renovate.yml

View workflow run for this annotation

GitHub Actions / Renovate

Invalid workflow file

The workflow is not valid. .github/workflows/renovate.yml (Line: 61, Col: 12): Job 'validate' depends on unknown job 'run-renovate'.
steps:
- uses: actions/checkout@v4
- name: Validate Config
run: npx --yes --package renovate --- "renovate-config-validator --strict default.json renovate.json"