Skip to content

Renovate

Renovate #8514

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Renovate
on:
push:
branches:
- main
paths:
- .renovaterc.json5
- .renovate/**.json5
workflow_dispatch:
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
id: app-token
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Run Renovate
id: dispatch
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |-
RUN_URL=$(gh workflow run renovate.yaml \
--repo "${{ github.repository_owner }}/.github" \
--ref main \
--field "autodiscoverFilter=${{ github.event.repository.name }}")
echo "run_id=${RUN_URL##*/}" >> "$GITHUB_OUTPUT"
- name: Await Renovate Completion
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |-
gh run watch \
--repo "${{ github.repository_owner }}/.github" \
"${{ steps.dispatch.outputs.run_id }}" \
--exit-status
- name: Renovate Output
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |-
gh run view \
--repo "${{ github.repository_owner }}/.github" \
--log "${{ steps.dispatch.outputs.run_id }}"