Skip to content

Commit

Permalink
Update dotnet-nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogo1705 authored Dec 8, 2023
1 parent 62fc84d commit dc3ec5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
id: version
run: |
if [[ "${{ github.ref }}" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-env name=PACKAGE_VERSION::${{ github.ref/refs\/tags\/v/ }}
export PACKAGE_VERSION=${{ github.ref/refs\/tags\/v/ }}
else
echo "Invalid tag format, setting default version..."
echo ::set-env name=PACKAGE_VERSION::0.0.0.0
export PACKAGE_VERSION=0.0.0.0
fi
- name: Build
Expand Down

0 comments on commit dc3ec5a

Please sign in to comment.