We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d525a commit 0356d93Copy full SHA for 0356d93
pre-push.hook
@@ -28,7 +28,7 @@ do
28
echo 'warning: HEAD is not up to date with `origin/main`' >&2
29
30
regex="^ \"version\": \"$(echo "${tag#v}" | sed 's/\./\\./g')\",\$"
31
- substitute="s/^\\( \"version\": \"\\).*\",\$/\\1${tag#v}\",/"
+ substitute="/\"name\": \"get-azure-pipelines-artifact\"/{N;s/\\(\"version\": \"\\).*\",\$/\\1${tag#v}\",/}"
32
git grep -q "$regex" refs/tags/$tag -- package.json || {
33
sed "$substitute" <package.json >package.json.new &&
34
mv -f package.json.new package.json
0 commit comments