mirror of
https://github.com/ilyakooo0/servant-reflex.git
synced 2024-09-11 07:15:29 +03:00
Check for actual additions
This commit is contained in:
parent
21d5f77976
commit
38af0a3064
@ -46,9 +46,6 @@ cache:
|
||||
- $HOME/.cabal/packages
|
||||
- $HOME/.cabal/store
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
||||
env:
|
||||
global:
|
||||
- ENCRYPTION_LABEL: "3c89d919c82e"
|
||||
|
@ -30,7 +30,7 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
|
||||
cd ..
|
||||
|
||||
# Clean out existing contents
|
||||
rm -rf $OUT/* || exit 0
|
||||
# rm -rf $OUT/* || exit 0
|
||||
|
||||
# Run our compile script
|
||||
doCompile
|
||||
@ -40,6 +40,12 @@ cd $OUT
|
||||
git config user.name "Travis CI"
|
||||
git config user.email "$COMMIT_AUTHOR_EMAIL"
|
||||
|
||||
# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
|
||||
if [ -z `git diff --exit-code` ]; then
|
||||
echo "No changes to the output on this push; exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Commit the "changes", i.e. the new version.
|
||||
# The delta will show diffs between new and old versions.
|
||||
git add -A
|
||||
|
Loading…
Reference in New Issue
Block a user