Skip to content

Bump actions/checkout from 6 to 7 #323

Bump actions/checkout from 6 to 7

Bump actions/checkout from 6 to 7 #323

name: auto-accept-dependabot
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Debug auth source (non-sensitive)
run: |
if [ -n "${{ secrets.AUTO_MERGE_TOKEN }}" ]; then
echo "GH auth source: secrets.AUTO_MERGE_TOKEN"
elif [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
echo "GH auth source: secrets.GITHUB_TOKEN"
elif [ -n "${{ github.token }}" ]; then
echo "GH auth source: github.token"
else
echo "::error::No token available for gh CLI"
exit 1
fi
echo "Actor: ${{ github.actor }}"
echo "Event: ${{ github.event_name }}"
- name: Approve and Enable Auto-Merge
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.AUTO_MERGE_TOKEN || secrets.GITHUB_TOKEN || github.token }}