2022-06-28 11:22:21 +00:00
|
|
|
---
|
|
|
|
# Runs PackageCloud cleanup every day at 9pm
|
|
|
|
name: PackageCloud Cleanup
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 21 * * *'
|
|
|
|
workflow_dispatch: null
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cleanup:
|
|
|
|
name: PackageCloud Cleanup
|
|
|
|
runs-on: ubuntu-latest
|
2022-07-25 11:10:03 +00:00
|
|
|
if: github.repository == 'netdata/netdata'
|
2022-06-28 11:22:21 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
repos:
|
|
|
|
- stable
|
|
|
|
- edge
|
|
|
|
- devel
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-11 11:16:49 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-06-28 11:22:21 +00:00
|
|
|
id: checkout
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Prepare environment
|
|
|
|
id: prepare
|
|
|
|
run: |
|
|
|
|
pip3 install requests python-dateutil
|
|
|
|
- name: Run PackageCloud Cleanup
|
|
|
|
id: cleanup
|
|
|
|
env:
|
|
|
|
PKGCLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}
|
|
|
|
run: |
|
|
|
|
python3 .github/scripts/netdata-pkgcloud-cleanup.py -r ${{ matrix.repos }}
|