Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcb1008

Browse files
MNT: Defer to Scientific Python org for upload removal
* Remove the workflow step for querying and removing all but the last 5 nightly wheel uploads to the scientific-python-nightly-wheels Anaconda Cloud package index as this is now centrally done by the Scientific Python org for all projects that upload to https://anaconda.org/scientific-python-nightly-wheels. - c.f. scientific-python/upload-nightly-action#12
1 parent b26d1ba commit fcb1008

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/nightlies.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,3 @@ jobs:
6363
with:
6464
artifacts_path: dist
6565
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

0 commit comments

Comments
 (0)