From fa1ceb25829ea588b2cd59d5255682c77a078e38 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Thu, 3 Jun 2021 19:15:18 +0100 Subject: [PATCH] Correctly defined build number --- .github/workflows/build-and-publish-pre-release.yml | 5 ++--- .github/workflows/build-and-publish-release.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index f89f2201..b01d617b 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -45,13 +45,12 @@ jobs: - name: Install Multi-Push Tool run: dotnet tool install --local Credfeto.Package.Push - name: Set Define Build Version - run: dotnet buildversion $GITHUB_RUN_NUMBER + run: dotnet buildversion --BuildNumber $GITHUB_RUN_NUMBER - name: Install Changelog Tool run: dotnet tool install --local Credfeto.Changelog.Cmd - name: Create Release Notes run: | - echo Hello > RELEASE_NOTES.md -# dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }} + dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }} - id: release-notes uses: juliangruber/read-file-action@v1 with: diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index cac7ab24..881a4f0c 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -39,7 +39,7 @@ jobs: - name: Install Changelog Tool run: dotnet tool install --local Credfeto.Changelog.Cmd - name: Set Define Build Version - run: dotnet buildversion $GITHUB_RUN_NUMBER + run: dotnet buildversion --BuildNumber $GITHUB_RUN_NUMBER - name: Create Release Notes run: | dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }}