Skip to content

Commit

Permalink
updated build rulez
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Apr 23, 2024
1 parent 0759e32 commit a27f6c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ for PACKAGE in $BUILD_ORDER; do
echo "$0: SHA=$SHA"

GIT_SHA_MATCHES=$(apt-cache policy $FUTURE_DEB_NAME | grep "Candidate" | grep "git.${SHA}" | wc -l)
ON_PUSH_BUILD=$(apt-cache policy $FUTURE_DEB_NAME | grep "Candidate" | grep "on.push.build" | wc -l)

NEW_COMMIT=false
if [[ "$GIT_SHA_MATCHES" == "0" ]]; then
if [[ "$GIT_SHA_MATCHES" == "0" ]] || [[ "$ON_PUSH_BUILD" == "0" ]]; then
echo "$0: new commit detected, going to compile"
NEW_COMMIT=true
fi
Expand Down

0 comments on commit a27f6c9

Please sign in to comment.