Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set random date for test #16

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
@@ -128,6 +128,13 @@ fi
# - merge the test reports for the tool groups
if [ "$MODE" == "test" ]; then

# set a random date. ofen tools put time stamps in output files
# for tools undergoing short reviews (<1d) these will produce
# problems with weekly checks that may be avoided by this
rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l)
randdate=$(date -d "$rand" +%Y%m%d %H:%M)
sudo date -s "$randdate"

if [ "$WORKFLOWS" == "true" ] && [ "$SETUP_CVMFS" == "true" ]; then
"$GITHUB_ACTION_PATH"/cvmfs/setup_cvmfs.sh
fi