Skip to content

Commit ebbf4e1

Browse files
authored
fix(ci): resolve syntax errors and unclosed if blocks in workflows (#8)
1 parent b0a0a25 commit ebbf4e1

15 files changed

Lines changed: 21 additions & 528 deletions

.github/workflows/android13.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ jobs:
334334
FEATURES_LIST+=("- Add Gboard Support")
335335
fi
336336
337-
if [ ${#FEATURES_LIST[@]} -eq 0 ]; then
338-
339337
if [ ${#FEATURES_LIST[@]} -eq 0 ]; then
340338
FEATURES="- Signature Verification Bypass (default)"
341339
else

.github/workflows/android14.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ jobs:
334334
FEATURES_LIST+=("- Add Gboard Support")
335335
fi
336336
337-
if [ ${#FEATURES_LIST[@]} -eq 0 ]; then
338-
339337
if [ ${#FEATURES_LIST[@]} -eq 0 ]; then
340338
FEATURES="- Signature Verification Bypass (default)"
341339
else

.github/workflows/android16.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ jobs:
312312
await github.rest.git.deleteRef({
313313
owner: context.repo.owner,
314314
repo: context.repo.repo,
315-
ref: 'tags/${{ steps.release_info.outputs.tag }}'
315+
ref: 'tags/' + '${{ steps.release_info.outputs.tag }}'
316316
});
317317
} catch (e) {
318318
console.log('Tag might not exist, continuing...');
@@ -402,7 +402,8 @@ jobs:
402402
tag_name: ${{ steps.release_info.outputs.tag }}
403403
name: ${{ steps.release_info.outputs.name }}
404404
files: ${{ steps.find_zip.outputs.file_path }}
405-
body: ${{ steps.generate_release_body.outputs.release_body }}
405+
body: |
406+
${{ steps.generate_release_body.outputs.release_body }}
406407
407408
- name: Upload patched jars
408409
uses: actions/upload-artifact@v4

.github/workflows/feature-test-suite.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,18 @@ jobs:
290290
if-no-files-found: warn
291291
path: |
292292
test-results/android${{ matrix.android_version }}/**/Framework-Patcher-android${{ matrix.android_version }}-*.zip
293-
retention-days: 7
293+
retention-days: 7
294+
295+
# Completion job to provide a static status check name for branch protection rules
296+
check:
297+
name: Feature Test Suite
298+
needs: feature-tests
299+
runs-on: ubuntu-latest
300+
if: always()
301+
steps:
302+
- name: All tests passed
303+
if: ${{ !(contains(needs.feature-tests.result, 'failure')) && !(contains(needs.feature-tests.result, 'cancelled')) }}
304+
run: exit 0
305+
- name: Tests failed
306+
if: ${{ contains(needs.feature-tests.result, 'failure') || contains(needs.feature-tests.result, 'cancelled') }}
307+
run: exit 1

scripts/core/apk_ops.sh

100644100755
File mode changed.

scripts/core/kaorios_patches.sh

100644100755
File mode changed.

scripts/core/logging.sh

100644100755
File mode changed.

scripts/core/module.sh

100644100755
File mode changed.

scripts/core/patching.sh

100644100755
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
find_smali_method_file() {
66
local decompile_dir="$1"
77
local method="$2"
8-
# returns first match (stdout)
9-
find "$decompile_dir" -type f -name "*.smali" -print0 |
10-
xargs -0 grep -s -l -- ".method" 2>/dev/null |
11-
xargs -r -I{} sh -c "grep -s -q \"[[:space:]]*\\.method.*${method}\" \"{}\" && printf '%s\n' \"{}\"" |
12-
head -n1
8+
grep -r -l --include="*.smali" "[[:space:]]*\.method.*${method}" "$decompile_dir" 2>/dev/null | head -n1
139
}
1410

1511
add_static_return_patch() {

scripts/core/tools.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)