Skip to content

Commit 9f6587c

Browse files
committed
check against main removed
1 parent 83539cc commit 9f6587c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

handwritten/bigtable/cloudbuild.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ steps:
77
- '-c'
88
- |
99
git fetch origin main --quiet
10-
# If on a branch, compare with origin/main. If on main, compare with previous commit.
11-
DIFF_RANGE="origin/main..."
12-
if [ "$(git rev-parse HEAD)" == "$(git rev-parse origin/main)" ]; then
13-
DIFF_RANGE="HEAD~1..HEAD"
14-
fi
15-
if git diff --quiet "$DIFF_RANGE" -- . ; then
10+
# Compare with origin/main to detect changes.
11+
if git diff --quiet origin/main... -- . ; then
1612
echo "No changes in handwritten/bigtable. Skipping tests."
1713
echo "skip" > /workspace/skip_tests
1814
else

0 commit comments

Comments
 (0)