File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4040 name : Extract version from .csproj
4141 shell : bash
4242 command : |
43- version=$(grep -oPm1 "(?<=< Version>) [^<]+ " << pipeline.parameters.csproj-file >>)
43+ version=$(grep -o "< Version>[^<]* " << pipeline.parameters.csproj-file >> | sed 's/<Version>//' | head -n 1 )
4444 echo "export PACKAGE_VERSION=$version" >> $BASH_ENV
4545 - run :
4646 name : Print PACKAGE_VERSION
9898 name : Extract version from .csproj
9999 shell : bash
100100 command : |
101- version=$(grep -oPm1 "(?<=< Version>) [^<]+ " << pipeline.parameters.csproj-file >>)
101+ version=$(grep -o "< Version>[^<]* " << pipeline.parameters.csproj-file >> | sed 's/<Version>//' | head -n 1 )
102102 echo "export PACKAGE_VERSION=$version" >> $BASH_ENV
103103 - run :
104104 name : Print PACKAGE_VERSION
You can’t perform that action at this time.
0 commit comments