pytorch/scripts/release/anaconda-prune/run.sh
Eli Uriegas d62994a94d ci: Add anaconda pruning to CI pipeline (#44651)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44651

Adds pruning for our anaconda channels (pytorch-nightly, pytorch-test)
into our CI pipeline so that it gets run on a more consistent basis.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: walterddr

Differential Revision: D23692851

Pulled By: seemethere

fbshipit-source-id: fa69b506b73805bf2ffbde75d221aef1ee3f753e
2020-09-15 10:51:05 -07:00

15 lines
329 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CHANNEL=${CHANNEL:-pytorch-nightly}
PACKAGES=${PACKAGES:-pytorch}
for pkg in ${PACKAGES}; do
echo "+ Attempting to prune: ${CHANNEL}/${pkg}"
CHANNEL="${CHANNEL}" PKG="${pkg}" "${DIR}/prune.sh"
echo
done