Skip to content

SDK regeneration

SDK regeneration #324

Workflow file for this run

name: Auto-merge

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

View workflow run for this annotation

GitHub Actions / Auto-merge

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:
types: [opened, reopened, synchronize]
permissions:
contents: write
pull-requests: write
concurrency:
group: auto-merge-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
arm:
if: >-
github.event.pull_request.user.id == 115122769 &&
github.event.pull_request.user.login == 'fern-api[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.base.ref == github.event.repository.default_branch &&
startsWith(github.event.pull_request.head.ref, 'fern-bot/')
runs-on: ubuntu-latest
steps:
- name: Approve
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh pr review "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --approve
- name: Enable auto-merge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh pr merge "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --auto --squash