mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-01 11:03:10 +00:00
27 lines
725 B
YAML
27 lines
725 B
YAML
name: Dependabot Auto-Merge
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
workflow_call: {}
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
auto-merge:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Fetch Dependabot metadata
|
|
if: github.actor == 'dependabot[bot]'
|
|
uses: dependabot/fetch-metadata@v2
|
|
id: metadata
|
|
|
|
- name: Enable auto-merge for non-major updates
|
|
if: github.actor == 'dependabot[bot]' && steps.metadata.outputs.update-type != 'version-update:semver-major'
|
|
run: gh pr merge --auto --squash "$PR_URL"
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GH_TOKEN: ${{ github.token }}
|