Refactor release.yml for improved readability

This commit is contained in:
Cris Charles authored and GitHub committed 2026-09-14 13:33:20 +08:00
1 parent ba045acb74
commit 20d5d4d694
1 file changed
+15 -7
+15 -7
View File
@@ -95,11 +95,16 @@ jobs:
if ($filtered.Count -ne $content.Count) {
Write-Host "Removing stale org.gradle.java.home configuration..."
Set-Content -Path $gradleProperties -Value $filtered -Encoding utf8
} else {
Set-Content `
-Path $gradleProperties `
-Value $filtered `
-Encoding utf8
}
else {
Write-Host "No org.gradle.java.home override found."
}
} else {
}
else {
Write-Host "$gradleProperties does not exist."
}
@@ -113,11 +118,11 @@ jobs:
# Google Services
# ------------------------------------------------------------
- name: Restore google-services.json from Secret
if: ${{ secrets.GOOGLE_SERVICES_JSON != '' }}
working-directory: frontend/android/app
shell: pwsh
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
if: ${{ env.GOOGLE_SERVICES_JSON != '' }}
working-directory: frontend/android/app
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
@@ -169,7 +174,10 @@ jobs:
Write-Host "Release tag: $tag"
"tag=$tag" |
Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Out-File `
-FilePath $env:GITHUB_OUTPUT `
-Encoding utf8 `
-Append
# ------------------------------------------------------------
# Manual Release Tag