Skip to content

Commit 5907508

Browse files
πŸ”„ synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
1 parent 341f744 commit 5907508

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# synced from @nextcloud/android-config
2+
name: Auto approve dependabot
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- main
8+
- master
9+
- stable-*
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: dependabot-approve-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
auto-approve:
20+
name: Auto approve dependabot
21+
runs-on: ubuntu-latest
22+
if: github.actor == 'dependabot[bot]'
23+
permissions:
24+
# needed to approve the PR
25+
pull-requests: write
26+
27+
steps:
28+
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
# synced from @nextcloud/android-config
2-
name: Auto approve
2+
name: Auto approve sync
33
on:
44
pull_request_target:
55
branches:
66
- master
77
- main
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
- labeled
13+
14+
concurrency:
15+
group: sync-approve-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
817

918
permissions:
1019
pull-requests: write
1120

1221
jobs:
1322
auto-approve:
23+
name: Auto approve sync
1424
runs-on: ubuntu-latest
25+
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
1526
steps:
1627
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
17-
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
1828
with:
1929
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
Β (0)