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.

ci: add github action that approves pull requests from renovate automatically (#566)

Meier Lukasbcbc2d1c5680
diff --git a/.github/workflows/renovate-automatic-approval b/.github/workflows/renovate-automatic-approval
new file mode 100644
index 000000000..b4701ed96
--- /dev/null
+++ b/.github/workflows/renovate-automatic-approval
@@ -0,0 +1,23 @@
+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