File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow is provided via the organization template repository
2
+ #
3
+ # https://github.com/nextcloud/.github
4
+ # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5
+ #
6
+ # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7
+ # SPDX-License-Identifier: MIT
8
+
9
+ name : Dependabot
10
+
11
+ on :
12
+ pull_request_target : # zizmor: ignore[dangerous-triggers]
13
+ branches :
14
+ - main
15
+ - master
16
+ - stable*
17
+
18
+ permissions :
19
+ contents : read
20
+
21
+ concurrency :
22
+ group : dependabot-approve-merge-${{ github.head_ref || github.run_id }}
23
+ cancel-in-progress : true
24
+
25
+ jobs :
26
+ auto-approve-merge :
27
+ if : github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'
28
+ runs-on : ubuntu-latest-low
29
+ permissions :
30
+ # for hmarr/auto-approve-action to approve PRs
31
+ pull-requests : write
32
+
33
+ steps :
34
+ - name : Disabled on forks
35
+ if : ${{ github.event.pull_request.head.repo.full_name != github.repository }}
36
+ run : |
37
+ echo 'Can not approve PRs from forks'
38
+ exit 1
39
+
40
+ # GitHub actions bot approve
41
+ - uses : hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2
42
+ with :
43
+ github-token : ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ # Nextcloud bot approve and merge request
46
+ - uses : ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2
47
+ with :
48
+ target : minor
49
+ github-token : ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
You can’t perform that action at this time.
0 commit comments