Skip to content

Bump github/accessibility-alt-text-bot from 1.4.0 to 1.5.0 #29

Bump github/accessibility-alt-text-bot from 1.4.0 to 1.5.0

Bump github/accessibility-alt-text-bot from 1.4.0 to 1.5.0 #29

name: Auto-approve and merge PR
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
auto_approve:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Approve PR
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.pulls.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: "APPROVE",
})
- name: Enable auto-merge for PR
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}