Skip to content

Commit be126a8

Browse files
authored
ci: dependabot automation (#77)
1 parent 543a750 commit be126a8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Dependabot Auto-Merge
2+
3+
on:
4+
# Manual trigger for testing/debugging
5+
workflow_dispatch:
6+
inputs:
7+
skipCI:
8+
description: 'Skip CI checks and merge immediately'
9+
required: false
10+
default: false
11+
type: boolean
12+
13+
# Schedule trigger - runs every hour during off-hours
14+
schedule:
15+
- cron: '45 2,5,8,11 * * *'
16+
17+
permissions:
18+
contents: write # Required to merge PRs
19+
pull-requests: write # Required to manage PRs
20+
checks: read # Required to read check statuses
21+
actions: read # Required to read workflow run information
22+
23+
jobs:
24+
automerge:
25+
# Only run for dependabot PRs (when checks complete), manual triggers, or scheduled runs
26+
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
27+
uses: salesforcecli/github-workflows/.github/workflows/automerge.yml@main
28+
secrets:
29+
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
30+
with:
31+
mergeMethod: squash
32+
skipCI: ${{ github.event.inputs.skipCI == 'true' }}

0 commit comments

Comments
 (0)