Merge V1 Release PR #467
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ''" |