Skip to content

Commit

Permalink
Update s3clean.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 5, 2024
1 parent a3ce007 commit 0a8f2e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/s3clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
echo "${{ secrets.S3CMD_CFG }}" > ~/.s3cfg
# Delete files older than 120 days
s3cmd ls -r s3://qfieldapks/ | awk -v dys="120" 'BEGIN { depoch=(dys*86400);cepoch=(systime()-depoch) } { gsub("-"," ",$1);gsub(":"," ",$2 );if (mktime($1" "$2" 00")<=cepoch) { print "s3cmd del "$4 } }' | bash
s3cmd du

0 comments on commit 0a8f2e7

Please sign in to comment.