Skip to content

Commit c1bf9ac

Browse files
ZzEeKkAaantonwolfy
andauthored
Add clean up job (#1593)
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
1 parent 3b5a588 commit c1bf9ac

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/conda-package.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,3 +401,33 @@ jobs:
401401
run: anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2
402402
env:
403403
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

0 commit comments

Comments
 (0)