Skip to content

Commit 1bb1b48

Browse files
authored
Merge pull request #68 from ioBroker-Bot/update-from-template-X0000-setupAutomergeDependabot-1768927000
[iobroker-bot] Setup Auto-Merge for Dependabot PRs
2 parents 6663780 + 671e581 commit 1bb1b48

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Workflow for auto-merging Dependabot PRs
2+
# This workflow uses the action-automerge-dependabot action to automatically merge
3+
# Dependabot PRs based on the rules defined in .github/auto-merge.yml
4+
5+
name: Auto-Merge Dependabot PRs
6+
7+
on:
8+
# Trigger when a PR is opened or updated
9+
# WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
10+
pull_request_target:
11+
types: [opened, synchronize, reopened]
12+
13+
jobs:
14+
auto-merge:
15+
runs-on: ubuntu-latest
16+
# Only run if actor is dependabot
17+
if: github.actor == 'dependabot[bot]'
18+
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
23+
steps:
24+
- name: Auto-merge Dependabot PRs
25+
uses: iobroker-bot-orga/action-automerge-dependabot@v1
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
# Optional: Path to your auto-merge configuration file
29+
# config-file-path: '.github/auto-merge.yml'
30+
# Optional: Merge method (merge, squash, or rebase)
31+
# merge-method: 'squash'
32+
# Optional: Wait for other checks to complete
33+
# wait-for-checks: 'true'
34+
# Optional: Maximum time to wait for checks in seconds (default: 3600)
35+
# max-wait-time: '3600'
File renamed without changes.

0 commit comments

Comments
 (0)