1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-25 00:12:24 +01:00
Bitwarden-app-android-iphon.../.github/scripts/android/increment-version.ps1
2020-06-08 12:14:22 -04:00

13 lines
355 B
PowerShell

$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);