Skip to content

chore(deps): bump the github-actions-all group with 3 updates #3

chore(deps): bump the github-actions-all group with 3 updates

chore(deps): bump the github-actions-all group with 3 updates #3

name: Dependabot Auto-Merge
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
permissions:
contents: write
pull-requests: write
jobs:
automerge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for patch updates
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: gh pr merge --auto --squash "$PR_URL"
- name: Policy decision
run: |
echo "Dependency: ${{ steps.metadata.outputs.dependency-names }}"
echo "Update type: ${{ steps.metadata.outputs.update-type }}"
echo "Dependency type: ${{ steps.metadata.outputs.dependency-type }}"