Skip to content

thermondo/destroy-heroku-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

GitHub Action to destroy a given Heroku Application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages