mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +00:00
github action android build steps
This commit is contained in:
12
.github/scripts/android/increment-version.ps1
vendored
Normal file
12
.github/scripts/android/increment-version.ps1
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
$rootPath = $env:GITHUB_WORKSPACE;
|
||||
$buildNumber = 3000 + [int]$env:GITHUB_RUN_NUMBER;
|
||||
|
||||
$androidManifest = $($rootPath + "\src\Android\Properties\AndroidManifest.xml");
|
||||
|
||||
$xml=New-Object XML;
|
||||
$xml.Load($androidManifest);
|
||||
|
||||
$node=$xml.SelectNodes("/manifest");
|
||||
$node.SetAttribute("android:versionCode", [string]$buildNumber);
|
||||
|
||||
$xml.Save($androidManifest);
|
||||
Reference in New Issue
Block a user