Cleanup dangling Heroku review instances #1431
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cleanup dangling Heroku review instances | |
on: | |
push: | |
branches: | |
- master | |
# Also run a nightly (at 12 AM IST) workflow to clean up dangling instances for redundancy | |
schedule: | |
- cron: '30 18 * * 1-5' | |
workflow_dispatch: | |
jobs: | |
teardown_heroku_instance: | |
runs-on: [ ubuntu-latest ] | |
env: | |
HEROKU_API_KEY: ${{ secrets.SERVICES_HEROKU_API_KEY }} | |
steps: | |
- name: Checkout Android app source | |
uses: actions/checkout@v4 | |
- name: Teardown dangling Heroku instances | |
run: .github/scripts/teardown_heroku_instances.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |