-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ajschmidt8/add-rapids-is-stable-build
Add `rapids-is-stable-build` and permissions checker
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# A utility script that examines environment variables provided by | ||
# GitHub Actions to determine whether the current build is a "stable" build. | ||
# A "stable" build occurs when the GITHUB_REF environment variable matches | ||
# the pattern "refs/tags/vYY.MM.PP". | ||
# Example: | ||
# if ./tools/rapids-is-stable-build; then echo "hi"; fi | ||
set -e | ||
|
||
if [[ "${GITHUB_REF}" =~ ^refs/tags/v[0-9]{2}.[0-9]{2}.[0-9]{2}$ ]]; then | ||
exit 0 | ||
fi | ||
|
||
exit 1 |