We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe5639 commit b8b5cb7Copy full SHA for b8b5cb7
1 file changed
.github/actions/determine-version/action.yml
@@ -32,6 +32,4 @@ runs:
32
run: |
33
echo "branch-name=${{ inputs.branch-name }}" >> $GITHUB_ENV
34
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
+ echo "version=$(${{ inputs.branch-name }} | sed -E 's/\([0-9]+\)\.\([0-9]+\).*/\1.\2/\)'" >> $GITHUB_ENV
0 commit comments