aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dependabot-approve-merge.yml
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-07-15 13:25:20 +0200
committerJoas Schilling <coding@schilljs.com>2024-07-15 13:25:20 +0200
commite40cc779c9f9331ed13f670d8c5d149060a3bb36 (patch)
tree62798531709c5f25744c5f52063c7ff4534851ef /.github/workflows/dependabot-approve-merge.yml
parentd42849852e2d4b8b84f37e5e5efc5a3ca7625138 (diff)
downloadnextcloud-server-e40cc779c9f9331ed13f670d8c5d149060a3bb36.tar.gz
nextcloud-server-e40cc779c9f9331ed13f670d8c5d149060a3bb36.zip
fix(CI): Skip some CI work from forks as they don't work anyway
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github/workflows/dependabot-approve-merge.yml')
-rw-r--r--.github/workflows/dependabot-approve-merge.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml
index 0d6b2c26d15..efe8bfe37f7 100644
--- a/.github/workflows/dependabot-approve-merge.yml
+++ b/.github/workflows/dependabot-approve-merge.yml
@@ -31,6 +31,12 @@ jobs:
pull-requests: 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
+
# GitHub actions bot approve
- uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
with: