Skip to content

Feat/tc2023 e 72 add footer #52

Feat/tc2023 e 72 add footer

Feat/tc2023 e 72 add footer #52

Workflow file for this run

name: Auto approve PR
on:
pull_request_target:
types: [opened, reopened, synchronize]
permissions:
pull-requests: write
jobs:
# Auto approve on dependabot PR at patch update
# by https://zenn.dev/nemuki/articles/dependabot-auto-merge
approve-updating-patch-version:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve a PR
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}