File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -401,3 +401,33 @@ jobs:
401
401
run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2
402
402
env :
403
403
ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
404
+
405
+ cleanup_packages :
406
+ name : Clean up anaconda packages
407
+ needs : [upload]
408
+ runs-on : ' ubuntu-latest'
409
+ defaults :
410
+ run :
411
+ shell : bash -el {0}
412
+ steps :
413
+ - uses : conda-incubator/setup-miniconda@v2
414
+ with :
415
+ run-post : false
416
+ channel-priority : " disabled"
417
+ channels : conda-forge
418
+ python-version : ' 3.11'
419
+
420
+ - name : Install anaconda-client
421
+ run : conda install anaconda-client
422
+
423
+ - name : Checkout repo
424
+ uses : actions/checkout@v2
425
+ with :
426
+ repository : IntelPython/devops-tools
427
+ fetch-depth : 0
428
+
429
+ - name : Cleanup old packages
430
+ run : |
431
+ python scripts/cleanup-old-packages.py \
432
+ --verbose --force --token ${{ secrets.ANACONDA_TOKEN }} \
433
+ --package dppy/${{ env.PACKAGE_NAME }} --label dev
You can’t perform that action at this time.
0 commit comments