Skip to content

Commit 075e872

Browse files
JasonLow8claude
andcommitted
fix: use python3 one-liner to avoid YAML indentation break
Multi-line python3 -c blocks with unindented code end the YAML literal block scalar prematurely; a single-line call avoids this. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 729bcc0 commit 075e872

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/android-apk.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,7 @@ jobs:
9393
sed -i 's/minSdk [0-9]*/minSdk 26/g' "$BUILDGRADLE"
9494
9595
# Add libtailscale AAR dependency + kotlinx-coroutines
96-
# Insert lines right after the dependencies block opening
97-
python3 -c "
98-
import re
99-
with open('$BUILDGRADLE') as f:
100-
content = f.read()
101-
content = re.sub(
102-
r'(dependencies\s*\{)',
103-
r'\1\n implementation fileTree(dir: \"libs\", include: [\"*.aar\", \"*.jar\"])\n implementation \"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3\"',
104-
content
105-
)
106-
with open('$BUILDGRADLE', 'w') as f:
107-
f.write(content)
108-
"
96+
python3 -c "import re; f='$BUILDGRADLE'; c=open(f).read(); c=re.sub(r'(dependencies\s*\{)', r'\1\n implementation fileTree(dir: \"libs\", include: [\"*.aar\", \"*.jar\"])\n implementation \"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3\"', c); open(f,'w').write(c)"
10997
11098
- name: Add Tailscale permissions to AndroidManifest
11199
run: |

0 commit comments

Comments
 (0)