- PR workflow ( on PR opened, closed, merged )
- Manul Approval Flow ( on manually invoked )
step 1. Go to your repo settings / environment ( https://github.com/OWNER/REPO/settings/environments )
step 2. click on 'create new environment' ( https://github.com/OWNER/REPO/settings/environments/new )
step 3. type in anything you want to call your environment to, like production or 'this-environment-needs-manual-approval-before-it-runs'
step 4. once the environment is created, click on it and adjust the settings to match your needs.
Like 'require approval from'
step 5. make sure the created environments name is matching your environment: in the job step.
https://github.com/burib/github-actions-examples/blob/main/.github/workflows/manual_approval_workflow.yml#L19