Skip to content

Commit

Permalink
chore: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 19, 2024
1 parent 0a5f961 commit ce4d0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-expected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ce4d0f8

Please sign in to comment.