Renovate #10087
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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: | |
github-app-slug: | |
description: GitHub App slug | |
type: string | |
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: 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@v3 | |
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_pem: ${{ secrets.APPLICATION_PRIVATE_KEY }} | |
renovate_app_slug: ${{ inputs.github-app-slug || github.repository_owner == 'marcusrbrown' && 'mrbro-bot' || github.repository_owner }} | |
timeout-minutes: 15 |