Skip to content

Commit b8b5cb7

Browse files
committed
asdas
1 parent bfe5639 commit b8b5cb7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/actions/determine-version/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,4 @@ runs:
3232
run: |
3333
echo "branch-name=${{ inputs.branch-name }}" >> $GITHUB_ENV
3434
echo "version-format=${{ inputs.version-format }}" >> $GITHUB_ENV
35-
echo "version=$(dotnet --version | sed -E '([0-9]+)\.([0-9]+).*/\1.\2/')" >> $GITHUB_ENV
36-
echo "major=$(echo ${{ inputs.branch-name }} | sed -E '${{ inputs.version-format }}/\1/')" >> $GITHUB_ENV
37-
echo "minor=$(echo ${{ inputs.branch-name }} | sed -E '${{ inputs.version-format }}/\2/')" >> $GITHUB_ENV
35+
echo "version=$(${{ inputs.branch-name }} | sed -E 's/\([0-9]+\)\.\([0-9]+\).*/\1.\2/\)'" >> $GITHUB_ENV

0 commit comments

Comments
 (0)