From ce4d0f879795cbce095aef32124033145a77523b Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 19 Sep 2024 15:57:58 +0200 Subject: [PATCH] chore: fix regex --- .github/workflows/update-expected.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-expected.yml b/.github/workflows/update-expected.yml index 506c5f05..ccca8b31 100644 --- a/.github/workflows/update-expected.yml +++ b/.github/workflows/update-expected.yml @@ -39,8 +39,8 @@ jobs: echo "sha: $sha, patchName: $patchName" # get node major, os and arch from patchName major=$(echo $patchName | grep -oP 'node-v\K[0-9]+') - os=$(echo $patchName | grep -oP 'node-v[0-9]+-(.*)-' | cut -d'-' -f2) - arch=$(echo $patchName | grep -oP 'node-v[0-9]+-(.*)-(.*)' | cut -d'-' -f3) + os=$(echo $patchName | grep -oP 'node-v[0-9.]+-(.*)-' | cut -d'-' -f3) + arch=$(echo $patchName | grep -oP 'node-v[0-9.]+-(.*)-(.*)' | cut -d'-' -f4) # replace in shas.txt file the sha matching the same major, os and arch sed -i -E "/$major[0-9.]+.-$os-$arch/c $sha $patchName"