File tree 1 file changed +0
-19
lines changed 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 63
63
with :
64
64
artifacts_path : dist
65
65
anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
66
-
67
- - name : Remove old uploads to save space
68
- run : |
69
- N_LATEST_UPLOADS=5
70
-
71
- # Remove all _but_ the last "${N_LATEST_UPLOADS}" package versions
72
- # N.B.: `anaconda show` places the newest packages at the bottom of
73
- # the output of the 'Versions' section and package versions are
74
- # preceded with a ' + '.
75
- anaconda show scientific-python-nightly-wheels/matplotlib &> >(grep '+') | \
76
- sed 's/.* + //' | \
77
- head --lines "-${N_LATEST_UPLOADS}" > remove-package-versions.txt
78
-
79
- while LANG=C IFS= read -r package_version ; do
80
- echo "Removing scientific-python-nightly-wheels/matplotlib/${package_version}"
81
- anaconda --token ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} remove \
82
- --force \
83
- "scientific-python-nightly-wheels/matplotlib/${package_version}"
84
- done <remove-package-versions.txt
You can’t perform that action at this time.
0 commit comments