forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netlify: try to fix dirty build detection
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2019 Materialize, Inc. All rights reserved. | ||
# | ||
# This file is part of Materialize. Materialize may not be used or | ||
# distributed without the express permission of Materialize, Inc. | ||
# | ||
# changed.sh — determines whether Netlify should rebuild the website. | ||
|
||
set -euo pipefail | ||
|
||
cd "$(dirname "$0")/../.." | ||
|
||
branch=$(git rev-parse --abbrev-ref HEAD) | ||
if [[ "$branch" = master ]]; then | ||
spec=HEAD^ | ||
else | ||
spec=master... | ||
fi | ||
|
||
# Netlify doesn't follow symlinks as of 03 Feb 2020, so we need to explicitly | ||
# check for changes in doc/user too. | ||
exec git diff --quiet "$spec" -- doc/user www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters