Skip to content

chore(deps): bump the next-ecosystem group with 2 updates #27

chore(deps): bump the next-ecosystem group with 2 updates

chore(deps): bump the next-ecosystem group with 2 updates #27

name: Dependabot 自动合并
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
name: 自动合并补丁更新
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: 获取 Dependabot 元数据
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 自动合并补丁版本
if: 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 }}