Pārlūkot izejas kodu

Merge pull request #13500 from nextcloud/repo-sync/android-config/master

🔄 synced file(s) with nextcloud/android-config
Andy Scherzinger 9 mēneši atpakaļ
vecāks
revīzija
aecb71bc65

+ 0 - 35
.github/workflows/autoApproveDependabot.yml

@@ -1,35 +0,0 @@
-# synced from @nextcloud/android-config
-
-# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
-# SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-name: Auto approve dependabot
-
-on:
-  pull_request_target:
-    branches:
-      - main
-      - master
-      - stable-*
-
-permissions:
-  contents: read
-
-concurrency:
-  group: dependabot-approve-${{ github.head_ref || github.run_id }}
-  cancel-in-progress: true
-
-jobs:
-  auto-approve:
-    name: Auto approve dependabot
-    runs-on: ubuntu-latest
-    if: github.actor == 'dependabot[bot]'
-    permissions:
-      # needed to approve the PR
-      pull-requests: write
-
-    steps:
-      - uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
-        with:
-          github-token: ${{ secrets.GITHUB_TOKEN }}

+ 13 - 4
.github/workflows/autoApproveRenovate.yml → .github/workflows/renovate-approve-merge.yml

@@ -1,7 +1,10 @@
-# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
-# SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
-# SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
-# SPDX-License-Identifier: GPL-3.0-or-later
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+#
+# SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
+# SPDX-License-Identifier: MIT
 
 name: Auto approve renovate PRs
 
@@ -30,6 +33,12 @@ jobs:
       contents: write
 
     steps:
+      - name: Disabled on forks
+        if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
+        run: |
+          echo 'Can not approve PRs from forks'
+          exit 1
+
       - uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
         id: branchname
         with: