Skip to content

renovate

renovate #68

Workflow file for this run

name: renovate
on:
schedule:
- cron: "0 6 * * *" # Daily 06:00 UTC
workflow_dispatch:
inputs:
dryRun:
description: "Dry run (log what would change, open no PRs)"
type: boolean
default: false
debug:
description: "Enable Renovate debug logging"
type: boolean
default: false
permissions:
contents: read
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: generate app token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.RENOVATE_APP_CLIENT_ID }}
private-key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}
owner: appwrite
repositories: sdk-generator
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: enable dry run
if: inputs.dryRun
run: echo "RENOVATE_DRY_RUN=full" >> "$GITHUB_ENV"
- name: enable debug logging
if: inputs.debug
run: echo "LOG_LEVEL=debug" >> "$GITHUB_ENV"
- name: target dispatch ref for dry run
if: inputs.dryRun
run: |
printf 'RENOVATE_BASE_BRANCHES=["%s"]\n' "$GITHUB_REF_NAME" >> "$GITHUB_ENV"
echo "RENOVATE_USE_BASE_BRANCH_CONFIG=merge" >> "$GITHUB_ENV"
- name: renovate
uses: renovatebot/github-action@3064367f740a1a91cca218698a63902689cce200 # v46.1.20
with:
token: ${{ steps.app-token.outputs.token }}
env:
RENOVATE_ALLOWED_COMMANDS: '["^./scripts/update-lockfiles\\.sh renovate$"]'
RENOVATE_REPOSITORIES: ${{ github.repository }}