Skip to content

Commit cdfe140

Browse files
committed
don't use perl syntax
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 1c287c7 commit cdfe140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
shell: bash
3939
run: |
4040
ls ./artifacts/*.nupkg
41-
version=$(unzip -p ./artifacts/*SDK*.nupkg '*.nuspec' | grep -oPm1 "(?<=<version>)[^<]+" | grep -oE "^[0-9]+\.[0-9]+\.[0-9]+-preview")
42-
template_version=$(grep -oPm1 "(?<=Version=\")[^\"]+" ./templates/content/wasi-cli/wasi-cli.csproj | grep -oE "^[0-9]+\.[0-9]+\.[0-9]+-preview")
41+
version=$(unzip -p ./artifacts/*SDK*.nupkg '*.nuspec' | grep -oE "<version>[^<]+" | sed 's/<version>//' | grep -oE "^[0-9]+\.[0-9]+\.[0-9]+-preview")
42+
template_version=$(grep -oE "Version=\"[^\"]+" ./templates/content/wasi-cli/wasi-cli.csproj | sed 's/Version="//' | grep -oE "^[0-9]+\.[0-9]+\.[0-9]+-preview")
4343
echo "Package Version: $version | Template version: $template_version"
4444
if [ "$version" != "$template_version" ]; then
4545
echo "Version mismatch: Package version ($version) does not match template version ($template_version)";
@@ -66,5 +66,5 @@ jobs:
6666
name: nuget-packages
6767
path: artifacts/*.nupkg
6868
if-no-files-found: error
69-
if: ${{ matrix.dotnet == '10.x' && matrix.os == 'windows-latest' }}
69+
if: ${{ matrix.dotnet == '10.x' && matrix.os == 'windows-latest' }}
7070

0 commit comments

Comments
 (0)