forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(ci): Netlify ignore command to check branch
Add a separate ignore script that checks git changes but also only deploys main and version branches to allow us to deploy versioned docs.
- Loading branch information
1 parent
4fcc308
commit ce0f876
Showing
2 changed files
with
11 additions
and
1 deletion.
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,10 @@ | ||
#!/bin/sh | ||
|
||
# We deploy main and version branches only | ||
if echo $HEAD | grep -E '^(main|v[[:digit:]]+\.([[:digit:]])+-branch)$' | ||
then | ||
echo "Head '$HEAD' matches a deployed branch, checking for git changes." | ||
git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../app/boards/ | ||
else | ||
exit 1 | ||
fi |
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