2022-03-05 19:09:46 +03:00
|
|
|
name: "dependabot-automerge"
|
2022-01-26 00:51:00 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types: [assigned, opened, synchronize, reopened]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
2022-03-05 19:09:46 +03:00
|
|
|
automerge:
|
2022-01-26 00:51:00 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-05 19:09:46 +03:00
|
|
|
if: github.actor == 'dependabot[bot]'
|
2022-01-26 00:51:00 +03:00
|
|
|
steps:
|
|
|
|
- name: metadata
|
|
|
|
id: metadata
|
2022-10-04 12:54:08 +03:00
|
|
|
uses: dependabot/fetch-metadata@v1.3.4
|
2022-01-26 00:51:00 +03:00
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.TOKEN }}"
|
|
|
|
- name: merge
|
2022-03-05 19:09:46 +03:00
|
|
|
id: merge
|
2022-01-26 00:51:00 +03:00
|
|
|
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}}
|