Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quotidian-ennui/gh-approve-deploy
Approve gated workflows
https://github.com/quotidian-ennui/gh-approve-deploy
gh-extension
Last synced: 3 months ago
JSON representation
Approve gated workflows
- Host: GitHub
- URL: https://github.com/quotidian-ennui/gh-approve-deploy
- Owner: quotidian-ennui
- License: apache-2.0
- Created: 2023-06-14T15:15:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T16:15:54.000Z (3 months ago)
- Last Synced: 2024-08-05T19:05:36.758Z (3 months ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# gh-approve-deploy
This is an extension for [GitHub CLI](https://cli.github.com/) that approves a workflow that has an environment approval gate
I'm using it to approve terraform projects that are gated before `terraform apply` is run.
## Installation
Prerequisites:
* [GitHub CLI](https://cli.github.com/) is already installed and authenticated
* [`jq`](https://stedolan.github.io/jq/) is installedTo install this extension:
```
gh extension install quotidian-ennui/gh-approve-deploy
```## Usage
Assuming that you have an existing workflow that is in a state "waiting" because it needs your approval before continuing... Help is minimal, just inspect the script, it's really not that complicated.
```
cd $DIRECTORY_OF_YOUR_REPO
gh approve-deploy -w 'workflow-name'
``````
bsh ❯ gh approve-deployUsage: gh approve-deploy -w "workflow-name"
Required arguments
-w The workflow nameOptional arguments:
-b The branch name (default is the default branch)
-c Comment for the approval (default is 'deploy it')
-l list workflow runs in a 'waiting' state on the branch
[-e the environment requiring approval. This parameter is ignored]EXAMPLES
gh approve-deploy -w "deploy-to-prod"
```## License
See [LICENSE](./LICENSE)