Skip to content

Commit

Permalink
workflows: Fixup and minimal changes
Browse files Browse the repository at this point in the history
Signed-off-by: PrajjuS <[email protected]>
  • Loading branch information
PrajjuS committed Jul 22, 2024
1 parent 5a4a54c commit 37d7d6f
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/prebuilts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ jobs:
- name: Download latest release .zip
uses: robinraju/[email protected]
with:
repository: "chenxiaolong/BCR/"
repository: "chenxiaolong/BCR"
latest: true
file_name: BCR*.zip
fileName: BCR*.zip

- name: Extract BCR*.zip
run: unzip BCR*.zip
run: unzip BCR*.zip -d extracted

- name: Move app-release.apk to BCR directory
run: |
shopt -s nullglob
mv extracted/system/priv-app/com.chiller3.bcr/app-release.apk BCR/ || true
- name: Rename BCR.apk
run: mv BCR/app-release.apk BCR.apk
run: mv BCR/app-release.apk BCR/BCR.apk

- name: Clean up
run: rm -rf BCR.zip extracted/
run: rm -rf BCR*.zip extracted/

- name: Check for Updated Apps
id: check_updates
Expand All @@ -65,6 +65,10 @@ jobs:
UPDATED_APPS+="DotGallery, "
fi
if echo "$CHANGED_FILES" | grep -q "BCR"; then
UPDATED_APPS+="BCR, "
fi
if [ -n "$UPDATED_APPS" ]; then
echo "UPDATED_APPS=$UPDATED_APPS" >> $GITHUB_ENV
else
Expand All @@ -76,9 +80,14 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "TheDroidxBot"
UPDATED_APPS=$(echo $UPDATED_APPS | sed 's/,$//')
git add .
git commit -sm "prebuilts: Incorporate latest $UPDATED_APPS improvements"
if [ -n "$(git status --porcelain)" ]; then
UPDATED_APPS=$(echo $UPDATED_APPS | sed 's/,$//')
git add .
git commit -sm "prebuilts: Incorporate latest $UPDATED_APPS improvements"
else
echo "No changes to commit."
fi
- name: Push Changes
uses: ad-m/github-push-action@master
Expand Down

0 comments on commit 37d7d6f

Please sign in to comment.