Skip to content

Commit bbb8902

Browse files
bugfix: missing an output / using wrong needs
1 parent a8211bf commit bbb8902

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/publish-beta.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
outputs:
1010
is_semantic_version: ${{ steps.parse.outputs.is_semantic_version }}
11+
version: ${{ github.event.pull_request.milestone.title }}
1112
steps:
1213
- id: parse
1314
env:
@@ -52,7 +53,7 @@ jobs:
5253
- name: Run Project Tests
5354
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" -r ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
5455
- name: Pack Projects into Nuget Packages
55-
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version='${{ github.event.pull_request.milestone.title }}-beta.${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}'
56+
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version='${{ needs.milestone.outputs.version }}-beta.${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}'
5657
- name: Publish to Beta
5758
run: dotnet nuget push ./**/*.nupkg -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }}
5859
- name: Packages & Symbols Artifact

.github/workflows/publish-stable.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
outputs:
1313
is_semantic_version: ${{ steps.parse.outputs.is_semantic_version }}
14+
version: ${{ steps.get_release.outputs.tag_name }}
1415
steps:
1516
- id: get_release
1617
uses: bruceadams/[email protected]
@@ -60,7 +61,7 @@ jobs:
6061
- name: Run Project Tests
6162
run: dotnet test EntityDb.sln --no-restore -c Debug
6263
- name: Pack Projects into Nuget Packages
63-
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version=${{ needs.extract.outputs.version }}
64+
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version=${{ needs.tags.outputs.version }}
6465
- name: Publish to Stable
6566
run: dotnet nuget push ./**/*.nupkg -s ${{ secrets.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }}
6667
- name: Packages & Symbols Artifact

0 commit comments

Comments
 (0)