Skip to content

Renovate

Renovate #11349

Workflow file for this run

---
# Renovate this repository if Renovate-specific tasks are checked or if dispatched.
name: Renovate
'on':
issues:
types: [edited]
pull_request:
types: [edited]
push:
branches: ['**']
schedule:
- cron: '0 * * * *' # Run every hour
workflow_call:
inputs:
log-level:
description: Log level for Renovate
type: string
default: 'debug'
print-config:
description: Log the fully-resolved Renovate config for each repository, plus fully-resolved presets.
type: boolean
default: false
secrets:
APPLICATION_ID:
description: GitHub App ID
required: true
APPLICATION_PRIVATE_KEY:
description: GitHub App private key
required: true
workflow_dispatch:
inputs:
log-level:
description: Log level for Renovate
type: string
default: 'debug'
print-config:
description: Log the fully-resolved Renovate config for each repository, plus fully-resolved presets.
type: boolean
default: false
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.run_number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
renovate:
name: Renovate
if: >-
(github.event_name != 'issues' && github.event_name != 'pull_request') ||
(
contains(join(github.event.*.body, ''), '- [x] <!-- approve-all-pending-prs -->') ||
contains(join(github.event.*.body, ''), '- [x] <!-- approve-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- approvePr-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- create-all-rate-limited-prs -->') ||
contains(join(github.event.*.body, ''), '- [x] <!-- manual job -->') ||
contains(join(github.event.*.body, ''), '- [x] <!-- other-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- rebase-all-open-prs -->') ||
contains(join(github.event.*.body, ''), '- [x] <!-- rebase-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- rebase-check -->') ||
contains(join(github.event.*.body, ''), '- [x] <!-- recreate-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- retry-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- unlimit-branch=') ||
contains(join(github.event.*.body, ''), '- [x] <!-- unschedule-branch=')
)
env:
WORKFLOW_LOG_LEVEL: ${{ vars.WORKFLOW_LOG_LEVEL || 'debug' }}
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'push'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- id: filter
if: github.event_name == 'push'
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
filters: |
changes:
- '.github/workflows/renovate.yaml'
- '.github/renovate.json5'
- name: Renovate
env:
autodiscover: >-
${{ github.event.repository.name == '.github' && !contains('["issues", "pull_request"]', github.event_name) && github.ref_name == github.event.repository.default_branch }}
dry_run: ${{ github.event_name == 'push' && github.ref_name != github.event.repository.default_branch }}
RENOVATE_FORK_PROCESSING: 'disabled'
if: github.event_name != 'push' || steps.filter.outputs.changes == 'true'
uses: bfra-me/renovate-action@v4
with:
autodiscover: ${{ env.autodiscover }}
branch: ${{ env.dry_run == 'true' && github.ref_name || '' }}
cache: true
dry-run: ${{ env.dry_run }}
log-level: ${{ inputs.log-level || env.WORKFLOW_LOG_LEVEL }}
print-config: ${{ inputs.print-config || github.event_name == 'push' }}
renovate-app-id: ${{ secrets.APPLICATION_ID }}
renovate-app-private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
timeout-minutes: 30