We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8946936 commit 42262b0Copy full SHA for 42262b0
hooks/build
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-if [ "latest" = "$DOCKER_TAG" ]; then
+if [ "latest" = "$DOCKER_TAG" ] && [ "master" = "$SOURCE_BRANCH" ]; then
4
JSONLINT_VERSION=$(curl https://registry.npmjs.org/jsonlint -sLo- | grep -Po '"latest":"\d+\.\d+\.\d+"' | awk -F'"' '{print $4}')
5
else
6
JSONLINT_VERSION="$SOURCE_BRANCH"
0 commit comments