Skip to content

Configured dependency version locking and updated Renovate auto-merge… #46

Configured dependency version locking and updated Renovate auto-merge…

Configured dependency version locking and updated Renovate auto-merge… #46

Workflow file for this run

---
name: Renovate
on:
pull_request:
branches: ["main"]
paths:
- .github/renovate-bot.json5
- .github/renovate.json5
- .github/renovate/**.json5
merge_group:
push:
branches: ["main"]
paths:
- .github/renovate-bot.json5
- .github/renovate.json5
- .github/renovate/**.json5
workflow_dispatch:
inputs:
dryRun:
description: "Dry-Run"
default: "false"
required: false
logLevel:
description: "Log-Level"
default: "debug"
required: false
schedule:
# Run once per week - at 00:00 on Sunday
- cron: "0 0 * * 0"
env:
LOG_LEVEL: debug
RENOVATE_DRY_RUN: false
RENOVATE_CONFIG_FILE: .github/renovate-bot.json5
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
token: "${{ secrets.BOT_TOKEN }}"
- name: Override default config from dispatch variables
run: |
echo "RENOVATE_DRY_RUN=${{ github.event.inputs.dryRun || env.RENOVATE_DRY_RUN }}" >> "${GITHUB_ENV}"
echo "LOG_LEVEL=${{ github.event.inputs.logLevel || env.LOG_LEVEL }}" >> "${GITHUB_ENV}"
- name: Delete old dashboard
run: |
ISSUE_NUMBER=$(gh issue list -S 'Renovate Dashboard 🤖' --json number -q '.[0].number')
if [ "$ISSUE_NUMBER" != "null" ] && [ -n "$ISSUE_NUMBER" ]; then
gh issue close "$ISSUE_NUMBER"
else
echo "No issue found to close."
fi
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Renovate
uses: renovatebot/github-action@3cef36a9aba515d8726b491905b3bc766832e221 # v39.0.5
with:
configurationFile: "${{ env.RENOVATE_CONFIG_FILE }}"
token: "${{ secrets.BOT_TOKEN }}"