Skip to content

Commit

Permalink
Update RAPIDS_DATE_STRING (#53)
Browse files Browse the repository at this point in the history
This PR updates how `RAPIDS_DATE_STRING` is computed.

The variable's value is now computed from the workflow run date.

This will help ensure that RAPIDS packages are published on a nightly
basis even if no changes to the source code have been made.
  • Loading branch information
ajschmidt8 authored May 11, 2023
1 parent 254889a commit 133f5ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tools/rapids-env-update
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ if [ "${CI:-false}" = "false" ]; then
export RAPIDS_BUILD_TYPE=${RAPIDS_BUILD_TYPE:-"pull-request"}
fi

VERSION_SUFFIX=$(git show --no-patch --date=format:'%y%m%d' --format='%cd')
export VERSION_SUFFIX RAPIDS_DATE_STRING=$VERSION_SUFFIX
RAPIDS_DATE_STRING="$(date +%y%m%d)"
if [ "${GITHUB_ACTIONS:-false}" = "true" ]; then
WORKFLOW_DATE=$(rapids-retry gh run view "${GITHUB_RUN_ID}" --json createdAt | jq -r '.createdAt')
RAPIDS_DATE_STRING=$(date -d "${WORKFLOW_DATE}" +%y%m%d)
fi
export RAPIDS_DATE_STRING
2 changes: 1 addition & 1 deletion tools/rapids-logger
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ function rapids-logger {
echo -e "\033[32m└${bar}┘\033[0m\n"
}

rapids-logger "$@"
rapids-logger "$@" >&2

0 comments on commit 133f5ed

Please sign in to comment.