Skip to content

Commit 3532eeb

Browse files
committed
script test
script test 1 attempt to fix versionScript 7 script test 2 script test 3 script test 4 script test 5
1 parent 2bef767 commit 3532eeb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/gradle-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v2
5959
- name: Get Version
60-
run: .\scripts\getLatestVersion.ps1 -propertiesPath $env:LOCATION
60+
run: .\scripts\getLatestVersion.ps1
6161
shell: pwsh
6262
- name: Test Print
6363
run: echo $RELEASE_TAG

scripts/getLatestVersion.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ $findVersions = $findVersions -split "`r`n"
2626
$versionIndex = $findVersions[0].IndexOf("=")
2727
$majorVersion = $findVersions[0].Substring($versionIndex+2)
2828
$minorVersion = $findVersions[1].Substring($versionIndex+2)
29-
$patchVersion = $findVersions[2].Substring($versionIndex+2)
30-
$version = "$majorVersion.$minorVersion.$patchVersion"
31-
32-
33-
echo "RELEASE_TAG = $version" >> $GITHUB_ENV
29+
#$patchVersion = $findVersions[2].Substring($versionIndex+2)
30+
#$version = "$majorVersion.$minorVersion.$patchVersion"
31+
echo $findVersions
32+
echo $majorVersion
33+
echo $minorVersion
34+
echo "RELEASE_TAG = $versionIndex" >> $GITHUB_ENV
3435
#Update the VERSION_STRING env variable and inform the user
3536
#Write-Host "##vso[task.setVariable variable=VERSION_STRING]$($version)";
3637
#Write-Host "Updated the VERSION_STRING enviornment variable with the current Gradle.Properties, $version"

0 commit comments

Comments
 (0)