Skip to content

Commit

Permalink
Updated regex
Browse files Browse the repository at this point in the history
  • Loading branch information
PTaladay committed Mar 25, 2024
1 parent 00a0f27 commit bfa63a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/dotnet-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
shell: bash
run: |
dotnetVersion=${{inputs.dotnetVersion}}
version=$( echo "$dotnetVersion" | sed 's/^.*?(?=\.)')
version=$( echo "$dotnetVersion" | sed 's/^\([0-9]*\)\..*/\1/')
netVersion="net${version}.0"
echo "$netVersion"
echo "net_version=$netVersion" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit bfa63a5

Please sign in to comment.