Skip to content

Commit 4ba28a3

Browse files
Merge pull request #1142 from nextcloud/feat/workflow-auto-update-dependabot-approve-merge.yml
Updating dependabot-approve-merge.yml workflow from template
2 parents e0c8cf5 + 97f07e6 commit 4ba28a3

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/dependabot-approve-merge.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,29 @@ name: Dependabot
88
on:
99
pull_request_target:
1010
branches:
11+
- main
1112
- master
13+
- stable*
14+
15+
permissions:
16+
contents: read
1217

1318
jobs:
1419
auto-approve-merge:
20+
if: github.actor == 'dependabot[bot]'
1521
runs-on: ubuntu-latest
22+
permissions:
23+
# for hmarr/auto-approve-action to approve PRs
24+
pull-requests: write
1625

1726
steps:
1827
# Github actions bot approve
1928
- uses: hmarr/auto-approve-action@v2
20-
if: github.actor == 'dependabot[bot]'
2129
with:
2230
github-token: ${{ secrets.GITHUB_TOKEN }}
2331

2432
# Nextcloud bot approve and merge request
2533
- uses: ahmadnassri/action-dependabot-auto-merge@v2
26-
if: github.actor == 'dependabot[bot]'
2734
with:
2835
target: minor
2936
github-token: ${{ secrets.COOKBOOK_BOT_TOKEN }}
30-
31-
- run: "echo 'Skipping PR auto-merge as it is no dependabot PR'"
32-
if: github.actor != 'dependabot[bot]'

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
[#1118](https://github.com./nextcloud/cookbook/pull/1118) @christianlupus
3636
- Create Python based testing wrapper and enhance workflow script
3737
[#1137](https://github.com./nextcloud/cookbook/pull/1137) @christianlupus
38+
- Update workflow from nextcloud organization template
39+
[#1142](https://github.com./nextcloud/cookbook/pull/1142) @christianlupus
3840

3941

4042
## 0.9.13 - 2022-07-02

0 commit comments

Comments
 (0)