From: Eduardo San Martin Morote Date: Wed, 11 Oct 2023 14:01:12 +0000 (+0200) Subject: ci: ignore some builds X-Git-Tag: @pinia/nuxt@0.5.0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=935f6c81d5a165df4628620cd32f4da0c2753856;p=thirdparty%2Fvuejs%2Fpinia.git ci: ignore some builds --- diff --git a/packages/online-playground/deploy-check.sh b/packages/online-playground/deploy-check.sh new file mode 100755 index 00000000..29828274 --- /dev/null +++ b/packages/online-playground/deploy-check.sh @@ -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 diff --git a/packages/online-playground/netlify.toml b/packages/online-playground/netlify.toml index 7566e867..4d6c06f5 100644 --- a/packages/online-playground/netlify.toml +++ b/packages/online-playground/netlify.toml @@ -1,3 +1,4 @@ [build] command = "pnpm run build" +ignore = "./deploy-check.sh" publish = "dist"