* Initial plan * add Dependabot auto-merge workflow for minor and patch updates Co-authored-by: THoguet <61246905+THoguet@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: THoguet <61246905+THoguet@users.noreply.github.com>
29 lines
887 B
YAML
29 lines
887 B
YAML
name: Dependabot Auto-merge
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
auto-merge:
|
|
name: Auto-merge Dependabot minor and patch updates
|
|
runs-on: ubuntu-latest
|
|
if: github.actor == 'dependabot[bot]'
|
|
steps:
|
|
- name: Fetch Dependabot metadata
|
|
id: metadata
|
|
uses: dependabot/fetch-metadata@v2.5.0
|
|
|
|
- name: Auto-merge minor and patch updates
|
|
if: |
|
|
steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
|
|
steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
|
run: gh pr merge --auto --squash "$PR_URL"
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|