diff --git a/.github/workflows/release_kickoff.yml b/.github/workflows/release_kickoff.yml index d26d5a0cc0..2c8a45e807 100644 --- a/.github/workflows/release_kickoff.yml +++ b/.github/workflows/release_kickoff.yml @@ -3,13 +3,34 @@ 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: