File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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' }}
You can’t perform that action at this time.
0 commit comments