Cleanup integration deployments #57267
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 integration deployments | |
on: | |
workflow_dispatch: | |
schedule: | |
# every 10 mins | |
- cron: "*/10 * * * *" | |
jobs: | |
cleanup: | |
name: Clean up integration environment deployments | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Clean up integration environment | |
uses: ./.github/actions/delete-deployments | |
with: | |
environment: integration | |
# Delete 300 deployments at a time | |
num-of-pages: 3 | |
# We start with page 2 because usually the first 200 deployments are still active, so we cannot delete them | |
starting-page: 2 |