mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Build: detect changes to packages based on the git diff (#18118)
This commit is contained in:
parent
de705229ba
commit
88d9a3b440
@ -19,8 +19,10 @@ GIT_SHA=$(parse_git_hash)
|
|||||||
echo "Commit: ${GIT_SHA}"
|
echo "Commit: ${GIT_SHA}"
|
||||||
echo "Current lerna.json version: ${PACKAGE_VERSION}"
|
echo "Current lerna.json version: ${PACKAGE_VERSION}"
|
||||||
|
|
||||||
# count packages that changed
|
# check if there were any changes to packages between current and previous commit
|
||||||
count=`npx lerna changed --loglevel silent | awk '{c++} END {print c}'`
|
count=`git diff HEAD~1..HEAD --name-only -- packages | awk '{c++} END {print c}'`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z $count ]; then
|
if [ -z $count ]; then
|
||||||
echo "No changes in packages, skipping packages publishing"
|
echo "No changes in packages, skipping packages publishing"
|
||||||
|
Loading…
Reference in New Issue
Block a user