From af3bdcce2b5120b178f7f7dd4fb5cc584bd94eaf Mon Sep 17 00:00:00 2001 From: Refringe Date: Wed, 20 Nov 2024 10:50:03 -0500 Subject: [PATCH] Removes the megacmd PSA message Why is this a thing? --- .gitea/workflows/build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ac0dac2..eb963f6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -601,12 +601,13 @@ jobs: mega-https on mega-login "${{ secrets.MEGA_EMAIL }}" "${{ secrets.MEGA_PASSWORD }}" - # Find files matching the pattern + mega-psa --discard + echo "Finding files matching the pattern:" mega-find /spt-release --pattern 'SPT-*.7z' > matching_files.txt cat matching_files.txt - # Filter files matching specific build types + echo "Filter files matching specific build types:" grep -E 'SPT-(NIGHTLY|DEBUG|BLEEDING|BLEEDINGMODS).*\.7z$' matching_files.txt > filtered_files.txt cat filtered_files.txt @@ -614,10 +615,13 @@ jobs: while read -r filepath; do filename=$(basename "$filepath") echo "Processing filename: $filename" + # Extract date from filename if [[ "$filename" =~ ([0-9]{8})\.7z$ ]]; then + file_date="${BASH_REMATCH[1]}" echo "Extracted date: $file_date" + file_date_fmt=$(date -d "${file_date:0:4}-${file_date:4:2}-${file_date:6:2}" +%s) echo "File date timestamp: $file_date_fmt"