From 3c2eb3ff4d69122573ee0b145baddba17e83632c Mon Sep 17 00:00:00 2001 From: Filip Staffa Date: Fri, 19 Jan 2024 15:53:26 +0100 Subject: [PATCH] fix --- .github/workflows/dotnetcore.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 2c3a6ea..bbaf09e 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -5,6 +5,9 @@ on: release: types: [published] +env: + DEFAULT_VERSION: "3.1.0.4-alpha" + jobs: build: runs-on: ubuntu-latest @@ -30,9 +33,6 @@ jobs: run: dotnet build --configuration Release /p:ContinuousIntegrationBuild=true - name: Test run: dotnet test src/PostalCodes.UnitTests/PostalCodes.UnitTests.csproj - - name: Set DEFAULT_VERSION - if: github.event_name != 'release' - run: echo "DEFAULT_VERSION=3.1.0.${{ github.run_id }}" >> $GITHUB_ENV - name: Extract Version from Release Tag id: get_version run: echo "VERSION=$(echo '${{ github.event.release.tag_name || env.DEFAULT_VERSION }}' | sed -e 's/^v\.//')" >> $GITHUB_ENV