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 7b2a8a3 commit 7b54a0cCopy full SHA for 7b54a0c
scripts/docs-check.sh
@@ -1,6 +1,11 @@
1
echo "prev commit: $CACHED_COMMIT_REF"
2
echo "current commit: $COMMIT_REF"
3
git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml scripts/docs-check.sh
4
-status=$?
5
-echo "diff exit code: $status"
6
-exit $status
+has_diff=$?
+git describe --exact-match --tags $(git log -n1 --pretty='%h')
+has_tag=$?
7
+
8
+echo "diff exit code: $has_diff"
9
+echo "tag exit code: $has_tag"
10
11
+exit $(($has_diff || $has_tag))
0 commit comments