Skip to content

Commit

Permalink
fix minor issue (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: dhuang <[email protected]>
  • Loading branch information
dhuangnm and dhuang committed Jul 17, 2023
1 parent 10a0f8d commit 2aca427
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
oldDate=`date --date='-2 month' +%Y%m%d`
oldWhl=`(aws s3 ls s3://nm-github-actions/${{ github.event.repository.name }}/ | grep nightly | grep "${oldDate}") || echo "notfound"`
if [[ "${oldWhl}" != 'notfound' ]]; then
echo "Remove old build ${oldWhl}"
aws s3 rm s3://nm-github-actions/${{ github.event.repository.name }}/${oldWhl}
for oldwhl in $(echo "${oldWhl}" | awk '{print $4}')
do
echo "Remove old build ${oldwhl}"
aws s3 rm s3://nm-github-actions/${{ github.event.repository.name }}/${oldwhl}
done
fi

0 comments on commit 2aca427

Please sign in to comment.