Skip to content

build(deps): bump cachix/install-nix-action from 25 to 26 #31

build(deps): bump cachix/install-nix-action from 25 to 26

build(deps): bump cachix/install-nix-action from 25 to 26 #31

name: "auto_merge_dependabot"
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: get metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: auto merge
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'shell/headless/neovim')}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}