mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
24 lines
613 B
Plaintext
24 lines
613 B
Plaintext
name: Approve Renovate PRs
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
approve-renovate-prs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install GitHub CLI
|
|
run: sudo apt-get install -y gh
|
|
|
|
- name: Approve Renovate PRs
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RENOVATE_APPROVE_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
|