]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
ci: ignore some builds
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 11 Oct 2023 14:01:12 +0000 (16:01 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 11 Oct 2023 14:01:12 +0000 (16:01 +0200)
packages/online-playground/deploy-check.sh [new file with mode: 0755]
packages/online-playground/netlify.toml

diff --git a/packages/online-playground/deploy-check.sh b/packages/online-playground/deploy-check.sh
new file mode 100755 (executable)
index 0000000..2982827
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# check for netlify to skip deploy
+# needed because we cannot use && in netlify.toml
+
+# exit 0 will skip the build while exit 1 will build
+
+git diff --quiet 'HEAD^' HEAD . && git diff --quiet 'HEAD^' HEAD ../pinia
index 7566e867556b92eb1e35eb51695321f65f0b06d9..4d6c06f5c897db6ede81b4ec98ef470c835806d7 100644 (file)
@@ -1,3 +1,4 @@
 [build]
 command = "pnpm run build"
+ignore = "./deploy-check.sh"
 publish = "dist"