62962540ce
Bumps the dependencies group with 1 update: [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata). Updates `dependabot/fetch-metadata` from 2.1.0 to 2.2.0 - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
name: auto-merge
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
contents: write
|
|
|
|
jobs:
|
|
auto-merge:
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dependabot metadata
|
|
id: dependabot-metadata
|
|
uses: dependabot/fetch-metadata@v2.2.0
|
|
with:
|
|
github-token: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
- name: Approve Pull Request
|
|
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
|
|
run: gh pr review -R "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
- name: Enable auto-merge for Dependabot PRs
|
|
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
|
|
run: gh pr merge -R "${{ github.repository }}" --merge --auto "${{ github.event.pull_request.number }}"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
|