File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
.github/actions/determine-version Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments