Skip to content

Commit 5da45fc

Browse files
committed
Add clean up job
1 parent f62f074 commit 5da45fc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/conda-package.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,32 @@ 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+
269+
- name: Install anaconda-client
270+
run: conda install anaconda-client
271+
272+
- name: Checkout repo
273+
uses: actions/checkout@v2
274+
with:
275+
repository: IntelPython/devops-tools
276+
fetch-depth: 0
277+
278+
- name: Cleanup old packages
279+
run: |
280+
python scripts/cleanup-old-packages.py \
281+
--verbose --force --token ${{ env.ANACONDA_TOKEN }} \
282+
--package dppy/dpbench --label dev

0 commit comments

Comments
 (0)