FreeScout/.github/workflows/dependabot-auto-merge.yml
dependabot[bot] 7daa4553cc
Bump dependabot/fetch-metadata from 2 to 3 in the actions-all group
Bumps the actions-all group with 1 update: [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata).


Updates `dependabot/fetch-metadata` from 2 to 3
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions-all
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-26 13:10:42 +00:00

26 lines
No EOL
924 B
YAML

name: Dependabot auto-merge
# pull_request_target is required so that Dependabot-triggered runs get a token
# with write permissions. Safe here because we never check out PR code — we only
# call the gh CLI on the PR metadata.
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v3
- name: Enable auto-merge for patch-only updates (version + security)
if: >-
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'security-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 }}