Skip to content

Commit 97d5d1b

Browse files
try again
1 parent 7f84c5e commit 97d5d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
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
@@ -98,7 +98,7 @@ jobs:
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

0 commit comments

Comments
 (0)