Skip to content

Commit bfe5639

Browse files
committed
asdfa
1 parent 1aa1393 commit bfe5639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ 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 's/([0-9]+)\.([0-9]+).*/\1.\2/')" >> $GITHUB_ENV
36-
echo "major=$(echo ${{ inputs.branch-name }} | sed -E 's/${{ inputs.version-format }}/\1/')" >> $GITHUB_ENV
37-
echo "minor=$(echo ${{ inputs.branch-name }} | sed -E 's/${{ inputs.version-format }}/\2/')" >> $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

0 commit comments

Comments
 (0)