Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: renovate approval run for all pull requests on every pull request change (#942)

Meier Lukas017c378582cc
diff --git a/.github/workflows/renovate-automatic-approval.yml b/.github/workflows/renovate-automatic-approval.yml
index 1185fd800..ee84a2263 100644
--- a/.github/workflows/renovate-automatic-approval.yml
+++ b/.github/workflows/renovate-automatic-approval.yml
@@ -2,10 +2,13 @@ name: "[Dependency Updates] Auto Approve"
on:
pull_request:
types: [opened, synchronize]
+ branches:
+ - "renovate/**"
jobs:
approve-renovate-prs:
runs-on: ubuntu-latest
+ if: github.actor == 'homarr-renovate[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -21,6 +24,4 @@ jobs:
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
+ gh pr review ${{github.event.pull_request.number}} --approve --body "Automatically approved by GitHub Action"