Skip to content

Commit 94c2d62

Browse files
authored
Merge pull request #305 from IntelPython/feature/add_cleanup
Add clean up job
2 parents f62f074 + 64d3977 commit 94c2d62

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
@@ -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

0 commit comments

Comments
 (0)