-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Fixup and minimal changes
Signed-off-by: PrajjuS <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|