Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 close

on:
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.