2022-03-05 19:07:51 +03:00
|
|
|
name: "dependabot-automerge"
|
2021-09-16 10:30:59 +03:00
|
|
|
|
|
|
|
on:
|
2021-10-27 22:52:48 +03:00
|
|
|
pull_request_target:
|
|
|
|
types: [assigned, opened, synchronize, reopened]
|
2021-09-16 10:30:59 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2021-10-27 22:52:48 +03:00
|
|
|
contents: write
|
2021-09-16 10:30:59 +03:00
|
|
|
|
|
|
|
jobs:
|
2022-03-05 19:07:51 +03:00
|
|
|
automerge:
|
2021-09-16 10:30:59 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-05 19:07:51 +03:00
|
|
|
if: github.actor == 'dependabot[bot]'
|
2021-09-16 10:30:59 +03:00
|
|
|
steps:
|
2021-10-27 22:52:48 +03:00
|
|
|
- name: metadata
|
|
|
|
id: metadata
|
2023-01-24 10:07:13 +03:00
|
|
|
uses: dependabot/fetch-metadata@v1.3.6
|
2021-09-16 10:30:59 +03:00
|
|
|
with:
|
2021-10-27 22:52:48 +03:00
|
|
|
github-token: "${{ secrets.TOKEN }}"
|
|
|
|
- name: merge
|
2022-03-05 19:07:51 +03:00
|
|
|
id: merge
|
2021-10-27 22:52:48 +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}}
|