Skip to content

Commit

Permalink
chore: Adding checkbox validations to the release workflow trigger (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas authored Nov 22, 2023
1 parent 2e0c4a0 commit b9b5918
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release_kickoff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b9b5918

Please sign in to comment.