ci: cleanup: Run every 24 hours instead of 6 hours

Resources don't fail to get deleted as often to need to run every 6
hours.

Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo 2024-07-02 22:25:01 +00:00
parent f20924db24
commit eda5d2c623

View File

@ -1,7 +1,7 @@
name: Cleanup dangling Azure resources
on:
schedule:
- cron: "0 */6 * * *"
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
@ -27,5 +27,5 @@ jobs:
- name: Cleanup resources
env:
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}
CLEANUP_AFTER_HOURS: 6 # Clean up resources created more than this many hours ago.
CLEANUP_AFTER_HOURS: 24 # Clean up resources created more than this many hours ago.
run: python3 tests/cleanup_resources.py