Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
01afc35
updating the fix nuget feeds to optionally restore with a solution file
MBurgessCogstate May 13, 2024
e24cd82
adding some logic to checking the solution file, it tried to run it e…
MBurgessCogstate May 13, 2024
5cf809d
adding write-output to print the contents of the solution file as it …
MBurgessCogstate May 13, 2024
8df118f
changing the comparison operator to an is nullorempty method.
MBurgessCogstate May 13, 2024
ab04c75
adding ${{ }} to evaluate the if statement as an expression.
MBurgessCogstate May 13, 2024
1f906b2
adding build-status and changing set-branch-variables to use pwsh and…
MBurgessCogstate May 14, 2024
d16741f
updating to lowercase the version and use powershell.
MBurgessCogstate May 14, 2024
2784220
double quoting the input variables so that powershell recognizes them…
MBurgessCogstate May 14, 2024
8ec8e64
I messed up a variable, it was unused (wish there was a hybrid file t…
MBurgessCogstate May 14, 2024
2804656
adding write outputs as the tolower() doesn't seem to work.
MBurgessCogstate May 14, 2024
677216b
Adding a funciton to version-control.psm1
MBurgessCogstate May 16, 2024
eb68349
removing some white space, it's saying it's not imporitng which is st…
MBurgessCogstate May 16, 2024
b55abbb
moving the file directory up then re importing the module rather than…
MBurgessCogstate May 17, 2024
d94e8a3
cleaning up comments and fixing the directory pathing for Confirm-Pre…
MBurgessCogstate May 17, 2024
c27b63f
changing from nuget.exe to mono /usr/local/bin/nuget.exe to run on li…
MBurgessCogstate May 21, 2024
2d152d5
changing back to use nuget.exe
MBurgessCogstate May 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/Composite-Actions/Build-Status/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Build Status'
description: 'Tags repostitory and shows the build status'
author: 'Mike Burgess'
inputs:
VERSION:
description: 'Version for tagging'
required: true

runs:
using: 'composite'

steps:
- name: Checkout files on agent
uses: actions/checkout@v3

- name: Tagging repostitory
run: |
git tag ${{ inputs.VERSION }}
git push origin ${{ inputs.VERSION }}
shell: bash

- name: Show build success
run: echo "The build ${{ inputs.VERSION }} successfully completed"
shell: bash
19 changes: 19 additions & 0 deletions .github/Composite-Actions/Create-Versions-Json/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Create Versions Json'
description: 'Creates a versions.json file'
author: 'Mike Burgess'
inputs:
VERSION:
description: 'Version generated from Set-Branch-Variables'
required: true
runs:
using: 'composite'
steps:
- name: Checkout files on agent
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: test then run set-nugetfeeds.ps1
run: |
${{ github.action_path }}/../../../Powershell/Scripts\Set-Versions-Json.ps1 -version ${{ inputs.VERSION }}
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"
11 changes: 11 additions & 0 deletions .github/Composite-Actions/Fix-Nuget-Feeds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
PROGET_API_KEY:
description: 'API key for NuGet.'
required: true
SOLUTION_FILE:
description: 'Optional Solution File if you want to run a restore'
required: false
runs:
using: 'composite'
steps:
Expand All @@ -24,7 +27,15 @@ runs:
nuget-api-key: ${{ inputs.PROGET_API_KEY }}

- name: test then run set-nugetfeeds.ps1
if: ${{ inputs.SOLUTION_FILE == null || inputs.SOLUTION_FILE == '' }}
run: |
${{ github.action_path }}/../../../Powershell/Scripts\set-nugetfeeds.ps1 -nugetPublish "${{ inputs.NUGET_PUBLISH }}" -nugetSource "${{ inputs.NUGET_SOURCE }}" -nugetLibrary "${{ inputs.NUGET_LIBRARY }}" -nugetApiKey "${{ inputs.PROGET_API_KEY }}" -nugetConfigFullPath "${{ github.workspace }}\nuget.config"
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: test then run set-nugetfeeds.ps1
if: ${{ inputs.SOLUTION_FILE && inputs.SOLUTION_FILE != ''}}
run: |
${{ github.action_path }}/../../../Powershell/Scripts\set-nugetfeeds.ps1 -nugetPublish "${{ inputs.NUGET_PUBLISH }}" -nugetSource "${{ inputs.NUGET_SOURCE }}" -nugetLibrary "${{ inputs.NUGET_LIBRARY }}" -nugetApiKey "${{ inputs.PROGET_API_KEY }}" -nugetConfigFullPath "${{ github.workspace }}\nuget.config" -solutionFile ${{ inputs.SOLUTION_FILE }}
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"
103 changes: 68 additions & 35 deletions .github/Composite-Actions/Set-Branch-Variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,95 +58,128 @@ runs:
id: set-dev-variables
if: contains(inputs.BRANCH_NAME,'feature')
run: |
echo "BUILD_TYPE=dev" >> $GITHUB_ENV
echo "BUILD_CONFIG=Debug" >> $GITHUB_ENV
echo "NUGET_PUBLISH=https://proget.cogstate.com/nuget/cogstate-releases-dev/" >> $GITHUB_ENV
echo "NUGET_SOURCE=https://proget.cogstate.com/nuget/nuget-dev/" >> $GITHUB_ENV
echo "NUGET_LIBRARY=https://proget.cogstate.com/nuget/cogstate-library-nuget-dev/" >> $GITHUB_ENV
shell: bash
Write-Output "BUILD_TYPE=dev" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "BUILD_CONFIG=Debug" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_PUBLISH=https://proget.cogstate.com/nuget/cogstate-releases-dev/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_SOURCE=https://proget.cogstate.com/nuget/nuget-dev/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_LIBRARY=https://proget.cogstate.com/nuget/cogstate-library-nuget-dev/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Set dev version
id: set-dev-version
if: contains(inputs.BRANCH_NAME,'feature')
run: |
echo "preversion=${{ steps.branch-regex.outputs.group1 }}-${{ env.BUILD_TYPE }}.${{ steps.branch-regex.outputs.group2 }}.${{ github.run_number }}${{ github.run_attempt }}" >> $GITHUB_ENV
shell: bash
$BranchRegexGroup1 = $("${{ steps.branch-regex.outputs.group1 }}").tolower()
$BuildType = $("${{ env.BUILD_TYPE }}").tolower()
$BranchRegexGroup2 = $("${{ steps.branch-regex.outputs.group2 }}").tolower()
$GitHubRunNumber = $("${{ github.run_number }}").tolower()
$GitHubRunAttempt= $("${{ github.run_attempt }}").tolower()

Write-Output "Branch Regex Group 1: $BranchRegexGroup1"
Write-Output "Build Type: $BuildType"
Write-Output "Branch Regex Group 2: $BranchRegexGroup2"
Write-Output "GitHubRunNumber: $GitHubRunNumber"
Write-Output "GitHubRunAttempt: $GitHubRunAttempt"

Write-Output "preversion=$BranchRegexGroup1-$BuildType.$BranchRegexGroup2.$GithubRunNumber$GitHubRunAttempt" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

#Set the RC Variables if the branch contains release

- name: Set rc variables
id: set-rc-variables
if: contains(inputs.BRANCH_NAME,'release')
run: |
echo "BUILD_TYPE=rc" >> $GITHUB_ENV
echo "BUILD_CONFIG=Release" >> $GITHUB_ENV
echo "NUGET_PUBLISH=https://proget.cogstate.com/nuget/cogstate-releases-candidate/" >> $GITHUB_ENV
echo "NUGET_SOURCE=https://proget.cogstate.com/nuget/nuget-dev/" >> $GITHUB_ENV
echo "NUGET_LIBRARY=https://proget.cogstate.com/nuget/cogstate-library-nuget/" >> $GITHUB_ENV
shell: bash
Write-Output "BUILD_TYPE=rc" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "BUILD_CONFIG=Release" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_PUBLISH=https://proget.cogstate.com/nuget/cogstate-releases-candidate/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_SOURCE=https://proget.cogstate.com/nuget/nuget-dev/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "NUGET_LIBRARY=https://proget.cogstate.com/nuget/cogstate-library-nuget/" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Set rc version
id: set-rc-version
if: contains(inputs.BRANCH_NAME,'release')
run: |
echo "preversion=${{ steps.branch-regex.outputs.group1 }}-${{ env.BUILD_TYPE }}.${{ github.run_number }}${{ github.run_attempt }}" >> $GITHUB_ENV
shell: bash
$BranchRegexGroup1 = $("${{ steps.branch-regex.outputs.group1 }}").tolower()
$BuildType = $("${{ env.BUILD_TYPE }}").tolower()
$GitHubRunNumber = $("${{ github.run_number }}").tolower()
$GitHubRunAttempt= $("${{ github.run_attempt }}").tolower()

Write-Output "Branch Regex Group 1: $BranchRegexGroup1"
Write-Output "Build Type: $BuildType"
Write-Output "GitHubRunNumber: $GitHubRunNumber"
Write-Output "GitHubRunAttempt: $GitHubRunAttempt"

Write-Output "preversion=$BranchRegexGroup1-$BuildType.$GitHubRunNumber$GitHubRunAttempt" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

#Override the publish variables if they are provided as inputs

- name: Override Nuget Publish
id: override-nuget-publish
if: inputs.NUGET_PUBLISH_OVERRIDE && contains(inputs.BRANCH_NAME,'release')
run: |
echo "NUGET_PUBLISH=${{ inputs.NUGET_PUBLISH_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_PUBLISH=${{ inputs.NUGET_PUBLISH_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Override Nuget Dev Publish
id: override-nuget-dev-publish
if: inputs.NUGET_PUBLISH_DEV_OVERRIDE && contains(inputs.BRANCH_NAME,'feature')
run: |
echo "NUGET_PUBLISH=${{ inputs.NUGET_PUBLISH_DEV_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_PUBLISH=${{ inputs.NUGET_PUBLISH_DEV_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

#Override the Nuget Library variables if they are provided as inputs

- name: Override Nuget Library
id: override-nuget-library
if: inputs.NUGET_LIBRARY_OVERRIDE && contains(inputs.BRANCH_NAME,'release')
run: |
echo "NUGET_LIBRARY=${{ inputs.NUGET_LIBRARY_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_LIBRARY=${{ inputs.NUGET_LIBRARY_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Override Nuget Dev Library
id: override-nuget-dev-library
if: inputs.NUGET_LIBRARY_DEV_OVERRIDE && contains(inputs.BRANCH_NAME,'feature')
run: |
echo "NUGET_LIBRARY=${{ inputs.NUGET_LIBRARY_DEV_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_LIBRARY=${{ inputs.NUGET_LIBRARY_DEV_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

#Override the Nuget Source variables if they are provided as inputs

- name: Override Nuget Source
id: override-nuget-source
if: inputs.NUGET_SOURCE_OVERRIDE && contains(inputs.BRANCH_NAME,'release')
run: |
echo "NUGET_SOURCE=${{ inputs.NUGET_SOURCE_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_SOURCE=${{ inputs.NUGET_SOURCE_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Override Nuget Dev Source
id: override-nuget-dev-source
if: inputs.NUGET_SOURCE_DEV_OVERRIDE && contains(inputs.BRANCH_NAME,'feature')
run: |
echo "NUGET_SOURCE=${{ inputs.NUGET_SOURCE_DEV_OVERRIDE }}" >> $GITHUB_ENV
shell: bash
Write-Output "NUGET_SOURCE=${{ inputs.NUGET_SOURCE_DEV_OVERRIDE }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"

- name: Set output variables
id: set-vars
run: |
echo "version=${{ env.preversion }}" >> $GITHUB_OUTPUT
echo "build-config=${{ env.BUILD_CONFIG }}" >> $GITHUB_OUTPUT
echo "build-type=${{ env.BUILD_TYPE }}" >> $GITHUB_OUTPUT
echo "nuget-publish=${{ env.NUGET_PUBLISH }}" >> $GITHUB_OUTPUT
echo "nuget-source=${{ env.NUGET_SOURCE }}" >> $GITHUB_OUTPUT
echo "nuget-library=${{ env.NUGET_LIBRARY }}" >> $GITHUB_OUTPUT
shell: bash
Write-Output "version=${{ env.preversion }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Write-Output "build-config=${{ env.BUILD_CONFIG }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Write-Output "build-type=${{ env.BUILD_TYPE }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Write-Output "nuget-publish=${{ env.NUGET_PUBLISH }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Write-Output "nuget-source=${{ env.NUGET_SOURCE }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
Write-Output "nuget-library=${{ env.NUGET_LIBRARY }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"
53 changes: 53 additions & 0 deletions Powershell/Modules/Version-Control.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,57 @@ function Invoke-ConfigTransformation {
Write-Host "Transformation failed."
exit 1
}
}

function New-VersionsJson {
param (
[string]$version
)


# Example of calling the function
# $versionString = "6.0.0-rc.cgm-381.7711"
# New-VersionJson -version $versionString

# Extract major, minor, and patch parts
$major, $minor, $patchSection = $version -split '\.', 3

# Initialize default values
$patch = "0"
$revision = "0"
$semanticPart = ""

# Extract semantic part and the patch and revision numbers
if ($patchSection -match '^(.*?)-(\d+)\.(\d+)$') {
$semanticPart = $matches[1]
$revision = $matches[2]
$patch = $matches[3]
} elseif ($patchSection -match '^(.*?)-(\d+)\.(\d+)$') {
$semanticPart = $matches[1]
$revision = $matches[2]
$patch = $matches[3]
} else {
$patch = $patchSection
$revision = "0"
}

# Construct the JSON object with ordered properties
$jsonObject = [PSCustomObject]@{
"cogstate.version.major" = $major
"cogstate.version.minor" = $minor
"cogstate.version.patch" = $patch
"cogstate.version.revision" = "0"
"cogstate.version.semantic2" = $version
"cogstate.version.semantic2.normalized" = "$major.$minor.0-$semanticPart.-$revision.$patch"
"cogstate.version.simple" = "$major.$minor.0.$patch"
}

# Convert to JSON
$jsonString = $jsonObject | ConvertTo-Json -Depth 3

# Save to a file
$outputFile = "versions.json"
$jsonString | Out-File -FilePath $outputFile

Write-Output "JSON content saved to $outputFile"
}
29 changes: 1 addition & 28 deletions Powershell/Scripts/Confirm-PreviousCommitsMerged.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,7 @@ $ErrorActionPreference = "Stop"
$VerbosePreference = "Continue"
$DebugPreference = "Continue"

trap
{
Write-Error "$($_.Exception)`n`nActual Stack Trace:`n$($_.ScriptStackTrace)`n`nError Output Stack Trace:"
exit 1
}

$currentDirectory = Get-Location
Write-Output "Current Directory is: $currentDirectory"

$parentDirectory = Join-Path -Path $currentDirectory -ChildPath ".."
Write-Output "Parent directory is: $parentDirectory"

$modulePath = Get-ChildItem $parentDirectory -Recurse -Filter "Version-Control.psm1" | Select-Object -First 1
if (-not $modulePath) {
Write-Output "Module path not found in current directory, going up a directory..."
$parentDirectory = Set-Location (Join-Path -Path $parentDirectory -ChildPath "..")
Write-Output "Parent directory is now: $parentDirectory"
$modulePath = Get-ChildItem $parentDirectory -Recurse -Filter "Version-Control.psm1" | Select-Object -First 1
}

if ($modulePath) {
Write-Output "Module path found: $($modulePath.FullName)"
Import-Module $modulePath.FullName
} else {
Write-Output "Module path not found. Exiting..."
Write-Error "Error: Module path is empty."
exit 2
}
Import-Module $PSScriptRoot\..\modules\Version-Control.psm1

VerifyAllGitDirectories

15 changes: 15 additions & 0 deletions Powershell/Scripts/Set-Versions-Json.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[CmdletBinding()]
param (
[parameter(Mandatory=$true)]
[String]
$Version
)

$WarningPreference = "Continue"
$ErrorActionPreference = "Stop"
$VerbosePreference = "Continue"
$DebugPreference = "Continue"

Import-Module $PSScriptRoot\..\modules\Version-Control.psm1

New-VersionsJson -version $Version
12 changes: 9 additions & 3 deletions Powershell/Scripts/set-nugetfeeds.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ param (
[parameter(Mandatory=$true)]
[string]
$nugetApiKey,
[parameter(Mandatory=$false)]
[string]
$solutionFile,
[parameter()]
[string]
$nugetConfigFullPath = "$env:GITHUB_WORKSPACE\nuget.config"
Expand Down Expand Up @@ -65,6 +68,9 @@ write-output "display nuget sources detailed verbosity"
# Display NuGet sources with detailed verbosity
nuget.exe source -Verbosity detailed

write-output "nuget restore"
# Nuget Restore
nuget.exe restore Cogstate.Platform\Cogstate.Platform.sln -force -recursive -ConfigFile $nugetConfigFullPath -Verbosity detailed
if(!([string]::IsNullOrEmpty($solutionFile))){
write-output "SolutionFile supplied, running the nuget restore"
write-output "Contents of the solutionfile variable: $solutionFile"
# Nuget Restore
nuget.exe restore $env:GITHUB_WORKSPACE\$soultionFile -force -recursive -ConfigFile $nugetConfigFullPath -Verbosity detailed
}