Vasiliy Tolstov fe764ae5a3 parent bce6f8c3e75dfe7844a0458a2a01fb437a9ccc77
author Vasiliy Tolstov <v.tolstov@unistack.org> 1646489425 +0300
committer Vasiliy Tolstov <v.tolstov@unistack.org> 1646494543 +0300

add message metadata support

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-05 18:37:02 +03:00

28 lines
694 B
YAML

name: "automerge"
on:
pull_request_target:
types: [assigned, opened, synchronize, reopened]
permissions:
pull-requests: write
contents: write
jobs:
automerge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.0
with:
github-token: "${{ secrets.TOKEN }}"
- name: merge
id: merge
if: ${{contains(steps.metadata.outputs.dependency-names, 'go.unistack.org')}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.TOKEN}}