Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Dependabot Auto-Merge

on:
# Manual trigger for testing/debugging
workflow_dispatch:
inputs:
skipCI:
description: 'Skip CI checks and merge immediately'
required: false
default: false
type: boolean

# Schedule trigger - runs every hour during off-hours
schedule:
- cron: '45 2,5,8,11 * * *'

permissions:
contents: write # Required to merge PRs
pull-requests: write # Required to manage PRs
checks: read # Required to read check statuses
actions: read # Required to read workflow run information

jobs:
automerge:
# Only run for dependabot PRs (when checks complete), manual triggers, or scheduled runs
if: github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
uses: salesforcecli/github-workflows/.github/workflows/automerge.yml@main
secrets:
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
with:
mergeMethod: squash
skipCI: ${{ github.event.inputs.skipCI == 'true' }}
Loading