Skip to content

Commit

Permalink
Automatically set the default value of the used Gremlinq version in t…
Browse files Browse the repository at this point in the history
…emplates to the determined NuGet Version.
  • Loading branch information
danielcweber committed Mar 21, 2024
1 parent 31f8fe2 commit 775a9d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
uses: dotnet/nbgv@master
id: nbgv

- name: Replace NuGet version default value in templates
run: find -name template.json -exec sed -i "s/TEMPLATE_GREMLINQ_VERSION_DEFAULT_VALUE/${{ steps.nbgv.outputs.NuGetPackageVersion }}/g" {} \;

- name: Build
run: dotnet build ./${{ github.event.repository.name }}.sln -c Release -p:ContinuousIntegrationBuild=true

Expand Down
2 changes: 1 addition & 1 deletion templates/aspnet/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"description": "The version of ExRam.Gremlinq being referenced",
"type": "parameter",
"datatype": "string",
"defaultValue": "12.1.2",
"defaultValue": "TEMPLATE_GREMLINQ_VERSION_DEFAULT_VALUE",
"replaces": "TEMPLATE_GREMLINQ_VERSION"
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/console/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"description": "The version of ExRam.Gremlinq being referenced",
"type": "parameter",
"datatype": "string",
"defaultValue": "12.1.2",
"defaultValue": "TEMPLATE_GREMLINQ_VERSION_DEFAULT_VALUE",
"replaces": "TEMPLATE_GREMLINQ_VERSION"
}
}
Expand Down

0 comments on commit 775a9d4

Please sign in to comment.