The Dependabot auto-merge workflow has been simplified and focused on essential functionality. Approval steps have been removed, leaving only the core auto-merge capability for minor and patch updates. **New Features** - Added explicit conditional filtering to run jobs **only for Dependabot PRs** **Enhancements & Refinements** - Renamed workflow from **Dependabot Auto-Approve and Auto-Merge** to **Dependabot Auto-Merge** to reflect simplified scope - Improved workflow structure with clearer YAML syntax separation - Reorganized **Fetch Dependabot metadata** step placement for better readability - Removed redundant GitHub script approval step to reduce complexity
28 lines
663 B
YAML
28 lines
663 B
YAML
name: Dependabot Auto-Merge
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
dependabot:
|
|
# Run only for Dependabot PRs
|
|
if: github.actor == 'dependabot[bot]'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Fetch Dependabot metadata
|
|
id: metadata
|
|
uses: dependabot/fetch-metadata@v2
|
|
|
|
- name: Enable auto-merge (squash)
|
|
if: |
|
|
steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
|
|
steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
|
uses: peter-evans/enable-pull-request-automerge@v3
|
|
with:
|
|
merge-method: squash
|