Skip to content

Commit 8f31f1f

Browse files
author
Filip Staffa
committed
another fix
1 parent c8a5183 commit 8f31f1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
release:
66
types: [published]
77

8-
env:
9-
DEFAULT_VERSION: "3.1.0.${{ env.GITHUB_RUN_ID }}-alpha"
10-
118
jobs:
129
build:
1310
runs-on: ubuntu-latest
@@ -33,6 +30,9 @@ jobs:
3330
run: dotnet build --configuration Release /p:ContinuousIntegrationBuild=true
3431
- name: Test
3532
run: dotnet test src/PostalCodes.UnitTests/PostalCodes.UnitTests.csproj
33+
- name: Set DEFAULT_VERSION
34+
if: github.event_name != 'release'
35+
run: echo "DEFAULT_VERSION=3.1.0.${{ github.run_id }}" >> $GITHUB_ENV
3636
- name: Extract Version from Release Tag
3737
id: get_version
3838
run: echo "VERSION=$(echo '${{ github.event.release.tag_name || env.DEFAULT_VERSION }}' | sed -e 's/^v\.//')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)