Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thermondo/destroy-heroku-app
GitHub Action to destroy a given Heroku Application
https://github.com/thermondo/destroy-heroku-app
Last synced: about 1 month ago
JSON representation
GitHub Action to destroy a given Heroku Application
- Host: GitHub
- URL: https://github.com/thermondo/destroy-heroku-app
- Owner: thermondo
- License: mit
- Created: 2020-12-01T16:04:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-03T12:58:53.000Z (about 4 years ago)
- Last Synced: 2024-04-16T01:57:46.353Z (9 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# destroy-heroku-app
Simple GitHub Action to destroy a given Heroku Application.
If the app doesn't exist, the command will do nothing.
Example usage:
```yaml
---
name: delete review app on pull request closeon:
pull_request:
types: [closed]jobs:
delete_review_apps:
runs-on: ubuntu-latest
steps:
- name: destroying review app
uses: Thermondo/destroy-heroku-app@
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
app_name: appname-pr-${{ github.event.pull_request.number }}```
## API-key permissions
The provided `HEROKU_API_KEY` needs *manage* permissions on the app to destroy.
For review apps in pipelines this means that the user needs these **manage permissions on the pipeline**, because newly created review apps inherit the permissions from the pipeline.