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 @@ -251,3 +251,33 @@ jobs:
251251 run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}
252252 env :
253253 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
254+
255+ cleanup_packages :
256+ name : Clean up anaconda packages
257+ needs : [upload_anaconda]
258+ runs-on : ' ubuntu-latest'
259+ defaults :
260+ run :
261+ shell : bash -el {0}
262+ steps :
263+ - uses : conda-incubator/setup-miniconda@v2
264+ with :
265+ run-post : false
266+ channel-priority : " disabled"
267+ channels : conda-forge
268+ python-version : ' 3.11'
269+
270+ - name : Install anaconda-client
271+ run : conda install anaconda-client
272+
273+ - name : Checkout repo
274+ uses : actions/checkout@v2
275+ with :
276+ repository : IntelPython/devops-tools
277+ fetch-depth : 0
278+
279+ - name : Cleanup old packages
280+ run : |
281+ python scripts/cleanup-old-packages.py \
282+ --verbose --force --token ${{ secrets.ANACONDA_TOKEN }} \
283+ --package dppy/${{ env.PACKAGE_NAME }} --label dev
You can’t perform that action at this time.
0 commit comments