Update PitchBlack-PBRP.yml
This commit is contained in:
parent
a50f828138
commit
571a783936
18
.github/workflows/PitchBlack-PBRP.yml
vendored
18
.github/workflows/PitchBlack-PBRP.yml
vendored
@ -156,6 +156,21 @@ jobs:
|
||||
- name: Set Build Date # Needed for gh-releases
|
||||
run: |
|
||||
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
|
||||
|
||||
- name: Check if Recovery Exist
|
||||
run: |
|
||||
if [ -f out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img ]; then
|
||||
echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
|
||||
echo "MD5_IMG=$(md5sum out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Recovery out directory is empty."
|
||||
fi
|
||||
if [ -f android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img ]; then
|
||||
echo "CHECK_ZIP_IS_OK=true" >> $GITHUB_ENV
|
||||
echo "MD5_ZIP=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/pbrp*.zip | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Recovery out directory is empty."
|
||||
fi
|
||||
|
||||
- name: Generate Build Statistics
|
||||
if: always()
|
||||
@ -165,12 +180,13 @@ jobs:
|
||||
|
||||
- name: Upload Build Statistics
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-stats
|
||||
path: build-stats.txt
|
||||
|
||||
- name: Upload to Release
|
||||
if: env.CHECK_IMG_IS_OK == 'true'
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
files: |
|
||||
|
Loading…
Reference in New Issue
Block a user