Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSchulze committed Apr 28, 2024
1 parent 102fc6b commit 5b89f70
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,15 @@ runs:
# install required packages
dotnet add package Microsoft.NET.Test.Sdk
# for gdunit version less than 4.2.2 we need to load api version 4.2.1.1
gdUnitVersion=$(echo "${{ inputs.version }}" | sed 's/^v//')
if [[ $(echo "$gdUnitVersion < 4.2.2" | bc -l) == 1 ]]; then
echo "gdUnit4 version $gdUnitVersion less than 4.2.2, update project to gdUnit4.api v4.2.1.1"
dotnet add package gdUnit4.api --version 4.2.1.1
gdUnitVersion=$(echo "${{ inputs.version }}" | sed 's/^v//; s/\.//g')
if [[ ${gdUnitVersion} < 422 ]]; then
echo "gdUnit4 version ${gdUnitVersion} less 4.2.2, update project to gdUnit4.api v4.2.1"
dotnet add package gdUnit4.api --version 4.2.1
dotnet add package gdUnit4.test.adapter --version 1.0.0
else
dotnet add package gdUnit4.api
dotnet add package gdUnit4.test.adapter
fi
dotnet add package gdUnit4.test.adapter
dotnet restore
dotnet build
Expand Down

0 comments on commit 5b89f70

Please sign in to comment.