From 935f6c81d5a165df4628620cd32f4da0c2753856 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 11 Oct 2023 16:01:12 +0200 Subject: [PATCH] ci: ignore some builds --- packages/online-playground/deploy-check.sh | 8 ++++++++ packages/online-playground/netlify.toml | 1 + 2 files changed, 9 insertions(+) create mode 100755 packages/online-playground/deploy-check.sh diff --git a/packages/online-playground/deploy-check.sh b/packages/online-playground/deploy-check.sh new file mode 100755 index 0000000000..2982827472 --- /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 7566e86755..4d6c06f5c8 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"