From 44d0dea0149152c9f17438e7d0d13593a5914054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrea=20Dematt=C3=A8?= Date: Wed, 14 Feb 2024 11:17:37 +0100 Subject: [PATCH] fix: bump from csprj --- .github/workflows/publish-new-version-common.yml | 5 ++++- .github/workflows/release-common.yml | 4 ++++ .github/workflows/release-version-endpoint.yml | 1 + Zupit.VersionEndpoint/Zupit.VersionEndpoint/README.md | 2 +- .../Zupit.VersionEndpoint/Zupit.VersionEndpoint.csproj | 4 ++-- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-new-version-common.yml b/.github/workflows/publish-new-version-common.yml index 99a0bdd..7267e43 100644 --- a/.github/workflows/publish-new-version-common.yml +++ b/.github/workflows/publish-new-version-common.yml @@ -6,6 +6,9 @@ on: WORKING_DIRECTORY: required: true type: string + COMMIT_PROJECT_NAME_SUFFIX: + required: true + type: string jobs: publish-new-version: @@ -27,7 +30,7 @@ jobs: git config --local user.name "github-actions[bot]" - name: Versionize Release id: versionize - run: versionize --changelog-all --exit-insignificant-commits + run: versionize --changelog-all --exit-insignificant-commits --proj-version-bump-logic --skip-tag --commit-suffix "[${{ inputs.COMMIT_PROJECT_NAME_SUFFIX }}]" continue-on-error: true - name: No release required if: steps.versionize.outcome != 'success' diff --git a/.github/workflows/release-common.yml b/.github/workflows/release-common.yml index e2d5610..a8e998a 100644 --- a/.github/workflows/release-common.yml +++ b/.github/workflows/release-common.yml @@ -12,6 +12,9 @@ on: DOTNET_IMAGE: required: true type: string + COMMIT_PROJECT_NAME_SUFFIX: + required: true + type: string jobs: test: @@ -24,6 +27,7 @@ jobs: uses: ./.github/workflows/publish-new-version-common.yml with: WORKING_DIRECTORY: ${{ inputs.WORKING_DIRECTORY }} + COMMIT_PROJECT_NAME_SUFFIX: ${{ inputs.COMMIT_PROJECT_NAME_SUFFIX }} release: needs: [ test, publish-new-version ] if: needs.publish-new-version.outcome == 'success' diff --git a/.github/workflows/release-version-endpoint.yml b/.github/workflows/release-version-endpoint.yml index 76c6d88..96baf6b 100644 --- a/.github/workflows/release-version-endpoint.yml +++ b/.github/workflows/release-version-endpoint.yml @@ -16,4 +16,5 @@ jobs: DOTNET_IMAGE: 'mcr.microsoft.com/dotnet/sdk:8.0.101-alpine3.18-amd64' WORKING_DIRECTORY: Zupit.VersionEndpoint PROJECT: Zupit.VersionEndpoint + COMMIT_PROJECT_NAME_SUFFIX: VersionEndpoint secrets: inherit diff --git a/Zupit.VersionEndpoint/Zupit.VersionEndpoint/README.md b/Zupit.VersionEndpoint/Zupit.VersionEndpoint/README.md index affc663..a8f9b41 100644 --- a/Zupit.VersionEndpoint/Zupit.VersionEndpoint/README.md +++ b/Zupit.VersionEndpoint/Zupit.VersionEndpoint/README.md @@ -4,7 +4,7 @@ This library adds a version endpoint to your ASP.NET Core application. The versi The endpoint is accessible via `GET /version` and returns a string with the version. You can customize the endpoint path. ## Prerequisites -- .NET 7 or later +- .NET 7 or later ## Installation ``` diff --git a/Zupit.VersionEndpoint/Zupit.VersionEndpoint/Zupit.VersionEndpoint.csproj b/Zupit.VersionEndpoint/Zupit.VersionEndpoint/Zupit.VersionEndpoint.csproj index 0821a52..7da98a6 100644 --- a/Zupit.VersionEndpoint/Zupit.VersionEndpoint/Zupit.VersionEndpoint.csproj +++ b/Zupit.VersionEndpoint/Zupit.VersionEndpoint/Zupit.VersionEndpoint.csproj @@ -1,4 +1,4 @@ - + net7.0;net8.0 @@ -8,7 +8,7 @@ Zupit.VersionEndpoint - 0.1.1 + 0.0.3 Zupit Developers Zupit Version;Endpoint;Zupit