Skip to content

Changes from gocardless/client-library-templates #164

Changes from gocardless/client-library-templates

Changes from gocardless/client-library-templates #164

name: Auto-merge client-library changes

Check warning on line 1 in .github/workflows/auto-merge-client-library-changes.yml

View workflow run for this annotation

GitHub Actions / Auto-merge client-library changes

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on: pull_request_target
permissions:
pull-requests: write
jobs:
merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'gocardless-ci-robot[bot]' && github.event.pull_request.head.ref == 'template-changes' }}
steps:
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GOCARDLESS_CI_ROBOT_TOKEN }}