diff --git a/README.md b/README.md index 46cceb6..f95d2ea 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,22 @@ This action gets versions from csproj/vbproj. ![test](https://github.com/kzrnm/get-net-sdk-project-versions-action/workflows/build-test/badge.svg?branch=master) +## Usage + +```yml + - uses: kzrnm/get-net-sdk-project-versions-action@v2 + id: get-version + with: + proj-path: YourProject/YourProject.csproj + - run: echo "${{steps.get-version.outputs.version}}" + - run: echo "${{steps.get-version.outputs.version-prefix}}" + - run: echo "${{steps.get-version.outputs.version-suffix}}" + - run: echo "${{steps.get-version.outputs.package-version}}" + - run: echo "${{steps.get-version.outputs.assembly-version}}" + - run: echo "${{steps.get-version.outputs.file-version}}" + - run: echo "${{steps.get-version.outputs.informational-version}}" +``` + ## Input ### `proj-path` @@ -33,24 +49,8 @@ This action gets versions from csproj/vbproj. `` -## Usage - -```yml - - uses: kzrnm/get-net-sdk-project-versions-action@v1 - id: get-version - with: - proj-path: YourProject/YourProject.csproj - - run: echo "${{steps.get-version.outputs.version}}" - - run: echo "${{steps.get-version.outputs.version-prefix}}" - - run: echo "${{steps.get-version.outputs.version-suffix}}" - - run: echo "${{steps.get-version.outputs.package-version}}" - - run: echo "${{steps.get-version.outputs.assembly-version}}" - - run: echo "${{steps.get-version.outputs.file-version}}" - - run: echo "${{steps.get-version.outputs.informational-version}}" -``` - ## Reference - [Additions to the csproj format for .NET Core - .NET Core CLI | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/core/tools/csproj) - [NuGet Package Version Reference | Microsoft Docs](https://docs.microsoft.com/nuget/concepts/package-versioning) -- [csproj のバージョン 管理 について - BEACHSIDE BLOG](https://blog.beachside.dev/entry/2019/06/06/190000) Japanese \ No newline at end of file +- [csproj のバージョン 管理 について - BEACHSIDE BLOG](https://blog.beachside.dev/entry/2019/06/06/190000) Japanese