Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: SAKSHI <[email protected]>
  • Loading branch information
Kajal4414 committed Apr 24, 2023
1 parent 2b02024 commit 9434279
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@ on:
inputs:
ROM_URL:
description: "ROM_URL"
required: true
default: "https://pixeldrain.com/api/file/WdArNVpq"
DEVICE_NAME:
description: "DEVICE_NAME"
required: true
default: "spes"
ROM_NAME:
description: "ROM_NAME"
required: true
default: "aospa-topaz-beta-2-spes-20230217.zip"
EXTRACTED_FILES:
description: "EXTRACTED_FILES"
required: true
default: "boot.img, dtbo.img, product.img, system.img, system_ext.img"

jobs:
Expand All @@ -34,9 +27,11 @@ jobs:
- name: Extract Payload
run: |
chmod u+x .github/scripts/android-ota-extractor
.github/scripts/android-ota-extractor ${{ github.event.inputs.ROM_NAME }}
.github/scripts/android-ota-extractor *.zip
echo -e "\n\e[31mDeleting files larger than 2GB...\e[0m"
find . -maxdepth 1 -type f -size +2G -print -delete
echo "ZIP_FILE=$(basename -a *.zip)" >> $GITHUB_ENV
echo "ZIP_FILE_SHA256=$(sha256sum *.zip | cut -d' ' -f1)" >> $GITHUB_ENV
- name: Upload to Release
uses: softprops/action-gh-release@v1
Expand All @@ -48,5 +43,6 @@ jobs:
tag_name: ${{ github.run_id }}
body: |
Device: ${{ github.event.inputs.DEVICE_NAME }}
Rom: [${{ github.event.inputs.ROM_NAME }}](${{ github.event.inputs.ROM_URL }})
Files: ${{ github.event.inputs.EXTRACTED_FILES }}
Filename: [${{ env.ZIP_FILE }}](${{ github.event.inputs.ROM_URL }})
Extracted files: ${{ github.event.inputs.EXTRACTED_FILES }}
SHA256: ${{ env.ZIP_FILE_SHA256 }}

0 comments on commit 9434279

Please sign in to comment.