Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Sakshi Aggarwal <81718060+sakshiagrwal@users.noreply.github.com>
  • Loading branch information
Kajal4414 committed Apr 18, 2024
1 parent 87ec2d5 commit 34e4ab6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
inputs:
ROM_URL:
description: "ROM_URL"
default: "https://pixeldrain.com/api/file/WdArNVpq"
default: "https://builds.paranoidandroid.co/aospa-uvite-beta-oneplus9-20240412.zip"
DEVICE_NAME:
description: "DEVICE_NAME"
default: "spes"
default: "oneplus9"
EXTRACTED_FILES:
description: "EXTRACTED_FILES"
default: "boot.img, dtbo.img, product.img, system.img, system_ext.img"
Expand All @@ -30,8 +30,14 @@ jobs:
.github/scripts/android-ota-extractor *.zip
echo "ZIP_FILE=$(basename -a *.zip)" >> $GITHUB_ENV
echo "ZIP_FILE_SHA256=$(sha256sum *.zip | cut -d' ' -f1)" >> $GITHUB_ENV
echo -e "\n\e[31mDeleting files larger than 1.95 GB (2000 MB)...\e[0m"
find . -maxdepth 1 -type f -size +2097152000c -print -delete
large_files=$(find . -maxdepth 1 -type f -size +2G)
if [ -n "$large_files" ]; then
echo -e "\n::warning:: Deleting files larger than 2 GB..."
for file in $large_files; do
echo "$file ($(du -h "$file" | awk '{print $1}'))" && rm "$file"
done
fi
- name: Upload to Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 34e4ab6

Please sign in to comment.