Skip to content

Merge V1 Release PR #467

Merge V1 Release PR

Merge V1 Release PR #467

# Validates and merges release PRs after they have been approved.
name: Merge V1 Release PR
on:
pull_request_review:
types:
- submitted
permissions:
contents: write
pull-requests: write
jobs:
check:
name: Validate and Merge PR
runs-on: ubuntu-latest
if: "${{ github.event.pull_request.base.ref == 'release-v1' && github.event.pull_request.head.ref == 'v1' && github.event.pull_request.title == 'chore: kickoff v1 release' && github.event.review.state == 'approved' }}"
steps:
- name: Merge PR
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.number }}
run: "gh pr merge $PR --repo aws-amplify/amplify-ios --merge --subject 'chore: kickoff release' --body ''"