Skip to content

Commit 70d9329

Browse files
Bump gittools/actions from 3.2.1 to 4.0.1 (#1016)
* Bump gittools/actions from 3.2.1 to 4.0.1 Bumps [gittools/actions](https://github.com/gittools/actions) from 3.2.1 to 4.0.1. - [Release notes](https://github.com/gittools/actions/releases) - [Changelog](https://github.com/GitTools/actions/blob/main/GitReleaseManager.yml) - [Commits](GitTools/actions@v3.2.1...v4.0.1) --- updated-dependencies: - dependency-name: gittools/actions dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Change GitVersion output to MajorMinorPatch Updated GitVersion output references to use MajorMinorPatch instead of nuGetVersionV2. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Smith <[email protected]>
1 parent d5226b2 commit 70d9329

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/aspnetcore.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build:
1818
runs-on: windows-latest
1919
outputs: # https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action
20-
Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
20+
Version: ${{ steps.gitversion.outputs.MajorMinorPatch }}
2121
CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
2222
steps:
2323
- uses: actions/checkout@v4
@@ -26,16 +26,15 @@ jobs:
2626

2727
# install and calculate the new version with GitVersion
2828
- name: Install GitVersion
29-
uses: gittools/actions/gitversion/setup@v3.2.1
29+
uses: gittools/actions/gitversion/setup@v4.0.1
3030
with:
31-
versionSpec: '5.x'
31+
versionSpec: '6.x'
3232
- name: Determine Version
33-
uses: gittools/actions/gitversion/execute@v3.2.1
33+
uses: gittools/actions/gitversion/execute@v4.0.1
3434
id: gitversion # step id used as reference for output values
3535
- name: Display GitVersion outputs
3636
run: |
37-
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
38-
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
37+
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
3938
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
4039
4140
# install dependencies, build, and test
@@ -47,11 +46,11 @@ jobs:
4746

4847
#Publish web and web service projects
4948
- name: DotNet Publish Web Service
50-
run: dotnet publish src/FeatureFlags.Service/FeatureFlags.Service.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/webservice --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
49+
run: dotnet publish src/FeatureFlags.Service/FeatureFlags.Service.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/webservice --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5150
- name: DotNet Publish Web Site
52-
run: dotnet publish src/FeatureFlags.Web/FeatureFlags.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/web --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
51+
run: dotnet publish src/FeatureFlags.Web/FeatureFlags.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/web --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5352
- name: DotNet Publish Demo Web Site
54-
run: dotnet publish src/FeatureFlagsDemo.Web/FeatureFlagsDemo.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} --output ${{ github.workspace }}/webDemo --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
53+
run: dotnet publish src/FeatureFlagsDemo.Web/FeatureFlagsDemo.Web.csproj --configuration ${{ env.dotNetConfiguration }} -p:Version=${{ steps.gitversion.outputs.MajorMinorPatch }} --output ${{ github.workspace }}/webDemo --runtime ${{env.runtimeTarget}} --self-contained false # --self-contained true --runtime ${{env.runtimeTarget}}
5554

5655
#Publish functional tests
5756
- name: DotNet build functional tests

0 commit comments

Comments
 (0)