Skip to content

Commit

Permalink
Rename rapids-is-stable-build to rapids-is-release-build
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
  • Loading branch information
jjacobelli committed Sep 23, 2022
1 parent 7f6f45b commit 5290fe5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions tools/rapids-is-release-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# A utility script that examines environment variables provided by
# GitHub Actions to determine whether the current build is a "release" build.
# A "release" build occurs when the GITHUB_REF environment variable matches
# the pattern "refs/tags/vYY.MM.PP".
# Example:
# if rapids-is-release-build; then echo "hi"; fi
set -e

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

if [[ "${GITHUB_REF}" =~ ^refs/tags/v[0-9]{2}.[0-9]{2}.[0-9]{2}$ ]]; then
rapids-echo-stderr "${echo_prefix} is release build"
exit 0
fi
rapids-echo-stderr "${echo_prefix} is not release build"
exit 1
17 changes: 0 additions & 17 deletions tools/rapids-is-stable-build

This file was deleted.

0 comments on commit 5290fe5

Please sign in to comment.