packagecloud.yml 873 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. # Runs PackageCloud cleanup every day at 9pm
  3. name: PackageCloud Cleanup
  4. on:
  5. schedule:
  6. - cron: '0 21 * * *'
  7. workflow_dispatch: null
  8. jobs:
  9. cleanup:
  10. name: PackageCloud Cleanup
  11. runs-on: ubuntu-latest
  12. if: github.repository == 'netdata/netdata'
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. repos:
  17. - stable
  18. - edge
  19. - devel
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@v4
  23. id: checkout
  24. with:
  25. submodules: recursive
  26. - name: Prepare environment
  27. id: prepare
  28. run: |
  29. pip3 install requests python-dateutil
  30. - name: Run PackageCloud Cleanup
  31. id: cleanup
  32. env:
  33. PKGCLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}
  34. run: |
  35. python3 .github/scripts/netdata-pkgcloud-cleanup.py -r ${{ matrix.repos }}