mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
27 lines
856 B
YAML
27 lines
856 B
YAML
name: "[Dependency Updates] Auto Approve"
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
approve-renovate-prs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Obtain token
|
|
id: obtainToken
|
|
uses: tibdex/github-app-token@v2
|
|
with:
|
|
private_key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
|
app_id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
|
- name: Install GitHub CLI
|
|
run: sudo apt-get install -y gh
|
|
- name: Approve Renovate PRs
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
|
run: |
|
|
for pr in $(gh pr list --author homarr-renovate[bot] --json number --jq .[].number); do
|
|
gh pr review $pr --approve --body "Automatically approved by GitHub Action"
|
|
done
|