Skip to content

Commit

Permalink
Update references from tag_name to tag in merge.yml
Browse files Browse the repository at this point in the history
The workflow file merge.yml has been updated, changing all references from 'tag_name' to 'tag'. This change affects how the latest release, build solution, and pack NuGet packages steps of the Github actions workflow operate, which now utilize 'tag' instead of 'tag_name'.
  • Loading branch information
frankhaugen committed Jul 19, 2024
1 parent 421f993 commit 295eecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
token: ${{ github.token }}

- name: Output latest release
run: echo "Latest release is ${{ steps.get_release.outputs.tag_name }}.${{ github.run_number }}"
run: echo "Latest release is ${{ steps.get_release.outputs.tag }}.${{ github.run_number }}"

- name: Restore NuGet Packages
run: dotnet restore

- name: Build Solution
run: dotnet build --configuration Release --no-restore /p:Version=${{ steps.get_release.outputs.tag_name }}.${{ github.run_number }}
run: dotnet build --configuration Release --no-restore /p:Version=${{ steps.get_release.outputs.tag }}.${{ github.run_number }}

- name: Run Tests
run: dotnet test --no-build --configuration Release --logger trx --results-directory TestResults

- name: Pack NuGet Packages
run: dotnet pack --no-build --configuration Release --output nupkgs /p:Version=${{ steps.get_release.outputs.tag_name }}-preview
run: dotnet pack --no-build --configuration Release --output nupkgs /p:Version=${{ steps.get_release.outputs.tag }}-preview

- name: Push NuGet Packages
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.nugetkey }} -s https://api.nuget.org/v3/index.json --skip-duplicate
Expand Down

0 comments on commit 295eecf

Please sign in to comment.