Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Staffa committed Jan 19, 2024
1 parent 8f31f1f commit 3c2eb3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
release:
types: [published]

env:
DEFAULT_VERSION: "3.1.0.4-alpha"

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down

0 comments on commit 3c2eb3f

Please sign in to comment.