Skip to content

Release Amplify iOS #85

Release Amplify iOS

Release Amplify iOS #85

Workflow file for this run

# Creates a PR to push main to release branch to kick-off the release workflow
name: Release Amplify iOS
on:
workflow_dispatch:
inputs:
clearDays:
description: '⚠️ I confirm that today is either a CLEAR day or we have approval for release'
required: true
default: false
type: boolean
revertMain:
description: '⛔️ All previous commits to main have been reverted'
required: true
default: false
type: boolean
permissions:
pull-requests: write
jobs:
validation:
name: Validation
runs-on: ubuntu-latest
if: inputs.clearDays == false || inputs.revertMain == false
steps:
- run: |
echo '❌ You need to acknowledge the input validations before releasing ❌'
exit 1
release:
name: Release
needs: validation
runs-on: macos-12
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Create PR to push main to release branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "gh pr create --title 'chore: kickoff release' --body 'kickoff release' --head main --base release"