Skip to content

Commit

Permalink
cleanup-anaconda: set missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tjurtsch committed Dec 29, 2020
1 parent 9e4a787 commit fcfb19e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cleanup-anaconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ source $GITHUB_WORKSPACE/.github/scripts/test_anaconda.sh
#if the timestamp is older than one week, remove the whole label
ago="7 days ago"

if [ $OS_NAME = 'osx' ]; then
DATE_SWITCH="-r "
else
DATE_SWITCH="--date=@"
fi

#extract date in milliseconds
limit_date=$(date $DATE_SWITCH "$ago" +'%s%N' | cut -b1-13)

Expand Down

0 comments on commit fcfb19e

Please sign in to comment.