Skip to content

Commit

Permalink
Merge pull request #12 from ajschmidt8/update-rapids-env-update
Browse files Browse the repository at this point in the history
Use `rapids-is-stable-build` in `rapids-env-update`
  • Loading branch information
ajschmidt8 authored Sep 21, 2022
2 parents 4c3df34 + 76c710f commit f444b84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tools/rapids-env-update
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# a nightly or stable build is occurring.
set -e

# Remove nightly channels if we are building main branch
if [[ "${GITHUB_REF_NAME}" = "main" ]]; then
# Remove nightly channels if build is a stable build
if rapids-is-stable-build; then
conda config --system --remove channels rapidsai-nightly
conda config --system --remove channels dask/label/dev
fi

# If nightly build, append current YYMMDD to version
if [[ "${RAPIDS_BUILD_TYPE}" != "pull-request" && "${GITHUB_REF_NAME}" = branch-* ]] ; then
# If nightly or branch build, append current YYMMDD to version
if [[ "${RAPIDS_BUILD_TYPE}" != "pull-request" ]] && ! ./tools/rapids-is-stable-build; then
VERSION_SUFFIX=$(date +%y%m%d)
export VERSION_SUFFIX
fi
5 changes: 4 additions & 1 deletion tools/rapids-is-stable-build
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
# if ./tools/rapids-is-stable-build; then echo "hi"; fi
set -e

echo_prefix=" [rapids-is-stable-build]"

if [[ "${GITHUB_REF}" =~ ^refs/tags/v[0-9]{2}.[0-9]{2}.[0-9]{2}$ ]]; then
rapids-echo-stderr "${echo_prefix} is stable build"
exit 0
fi

rapids-echo-stderr "${echo_prefix} is not stable build"
exit 1

0 comments on commit f444b84

Please sign in to comment.