diff --git a/.scripts/versioning.ps1 b/.scripts/versioning.ps1 index e44e44a..db5a75e 100644 --- a/.scripts/versioning.ps1 +++ b/.scripts/versioning.ps1 @@ -1,5 +1,3 @@ -gci env:\ - if((Get-Content env:\GITHUB_REF_TYPE) -ne "tag") { Return @@ -11,5 +9,4 @@ $git_sha = (Get-Content env:\GITHUB_SHA).Substring(0, 8) Write-Host $version Write-Host $git_sha -(Get-Content src\Alma\Alma.csproj).Replace("0.0.0", $version).Replace("development", $git_sha) | Set-Content src\Alma\Alma.csproj -Write-Host (Get-Content src\Alma\Alma.csproj) \ No newline at end of file +(Get-Content src\Alma\Alma.csproj).Replace("0.0.0", $version).Replace("development", $git_sha) | Set-Content src\Alma\Alma.csproj \ No newline at end of file diff --git a/.scripts/versioning.sh b/.scripts/versioning.sh index a72aa94..581460f 100755 --- a/.scripts/versioning.sh +++ b/.scripts/versioning.sh @@ -1,5 +1,3 @@ -printenv - if [ ${GITHUB_REF_TYPE} != "tag" ]; then exit 1 fi @@ -12,5 +10,4 @@ git_hash=`expr substr $git_hash 1 8` echo $version echo $git_hash -sed -i "s/0.0.0/$version/g;s/development/$git_hash/g" src/Alma/Alma.csproj -cat src/Alma/Alma.csproj \ No newline at end of file +sed -i "s/0.0.0/$version/g;s/development/$git_hash/g" src/Alma/Alma.csproj \ No newline at end of file