Skip to content

Commit 524495f

Browse files
author
Diptorup Deb
authored
Merge pull request #1170 from IntelPython/feature/add_cleanup
Add clean up job
2 parents aaafcfa + 3473ffd commit 524495f

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
@@ -256,3 +256,33 @@ jobs:
256256
257257
- name: Upload Wheels
258258
run: anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.WHEELS_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}
259+
260+
cleanup_packages:
261+
name: Clean up anaconda packages
262+
needs: [upload_anaconda]
263+
runs-on: 'ubuntu-latest'
264+
defaults:
265+
run:
266+
shell: bash -el {0}
267+
steps:
268+
- uses: conda-incubator/setup-miniconda@v2
269+
with:
270+
run-post: false
271+
channel-priority: "disabled"
272+
channels: conda-forge
273+
python-version: '3.11'
274+
275+
- name: Install anaconda-client
276+
run: conda install anaconda-client
277+
278+
- name: Checkout repo
279+
uses: actions/checkout@v2
280+
with:
281+
repository: IntelPython/devops-tools
282+
fetch-depth: 0
283+
284+
- name: Cleanup old packages
285+
run: |
286+
python scripts/cleanup-old-packages.py \
287+
--verbose --force --token ${{ secrets.ANACONDA_TOKEN }} \
288+
--package dppy/${{ env.PACKAGE_NAME }} --label dev

0 commit comments

Comments
 (0)