Skip to content

Commit 34e4ab6

Browse files
committed
Update main.yml
Signed-off-by: Sakshi Aggarwal <[email protected]>
1 parent 87ec2d5 commit 34e4ab6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
inputs:
66
ROM_URL:
77
description: "ROM_URL"
8-
default: "https://pixeldrain.com/api/file/WdArNVpq"
8+
default: "https://builds.paranoidandroid.co/aospa-uvite-beta-oneplus9-20240412.zip"
99
DEVICE_NAME:
1010
description: "DEVICE_NAME"
11-
default: "spes"
11+
default: "oneplus9"
1212
EXTRACTED_FILES:
1313
description: "EXTRACTED_FILES"
1414
default: "boot.img, dtbo.img, product.img, system.img, system_ext.img"
@@ -30,8 +30,14 @@ jobs:
3030
.github/scripts/android-ota-extractor *.zip
3131
echo "ZIP_FILE=$(basename -a *.zip)" >> $GITHUB_ENV
3232
echo "ZIP_FILE_SHA256=$(sha256sum *.zip | cut -d' ' -f1)" >> $GITHUB_ENV
33-
echo -e "\n\e[31mDeleting files larger than 1.95 GB (2000 MB)...\e[0m"
34-
find . -maxdepth 1 -type f -size +2097152000c -print -delete
33+
34+
large_files=$(find . -maxdepth 1 -type f -size +2G)
35+
if [ -n "$large_files" ]; then
36+
echo -e "\n::warning:: Deleting files larger than 2 GB..."
37+
for file in $large_files; do
38+
echo "$file ($(du -h "$file" | awk '{print $1}'))" && rm "$file"
39+
done
40+
fi
3541
3642
- name: Upload to Release
3743
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)