Cleanup Review Apps #108
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 Review Apps | |
on: | |
schedule: | |
- cron: '0 7 * * *' | |
# At 07:00, daily | |
workflow_dispatch: | |
jobs: | |
cleanup-review-apps: | |
runs-on: ubuntu-latest | |
environment: 'Review Apps' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: install jq | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y jq | |
- run: .github/scripts/cleanup-review-apps.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |