Skip to content

Commit

Permalink
πŸ“ πŸ”§ Chore, Fix(Actions): Fixed error environment variable usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Mar 4, 2024
1 parent 2593e42 commit f133654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/set-sign-info.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ while (([DirectoryInfo]$currentPath).FullName -ne ([DirectoryInfo]$currentPath).
if ($resolvedKitxMobilePath -and (Test-Path $resolvedKitxMobilePath -Type Container)) {
Set-Location $resolvedKitxMobilePath.ProviderPath
break
} else {
}
else {
$currentPath = ([DirectoryInfo]$currentPath).Parent.FullName
}
}
Expand All @@ -51,7 +52,7 @@ Write-Output $content > $fileName

Set-Location app

if ($null -eq $jksBase64 -or '' -eq $jksBase64) {
if (($null -eq $jksBase64) -or ('' -eq $jksBase64)) {
Write-Error "JKS file is not provided"
exit 1
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
StoreFile: ${{ secrets.JKS_STOREFILE }}
JksBase64: ${{ secrets.JKS_BASE64 }}
run: |
./set-sign-info.ps1 -keyPassword $KeyPassword -storePassword $StorePassword -keyAlias $KeyAlias -storeFile $StoreFile -jksBase64 $JksBase64
./set-sign-info.ps1 -keyPassword $env:KeyPassword -storePassword $env:StorePassword -keyAlias $env:KeyAlias -storeFile $env:StoreFile -jksBase64 $env:JksBase64
- name: Build
working-directory: kitx_mobile
Expand Down

0 comments on commit f133654

Please sign in to comment.