We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a5183 commit 8f31f1fCopy full SHA for 8f31f1f
.github/workflows/dotnetcore.yml
@@ -5,9 +5,6 @@ on:
5
release:
6
types: [published]
7
8
-env:
9
- DEFAULT_VERSION: "3.1.0.${{ env.GITHUB_RUN_ID }}-alpha"
10
-
11
jobs:
12
build:
13
runs-on: ubuntu-latest
@@ -33,6 +30,9 @@ jobs:
33
30
run: dotnet build --configuration Release /p:ContinuousIntegrationBuild=true
34
31
- name: Test
35
32
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
36
- name: Extract Version from Release Tag
37
id: get_version
38
run: echo "VERSION=$(echo '${{ github.event.release.tag_name || env.DEFAULT_VERSION }}' | sed -e 's/^v\.//')" >> $GITHUB_ENV
0 commit comments