Skip to content

Commit 8275a1b

Browse files
committed
Update changeset.yaml
1 parent 1a5c3ff commit 8275a1b

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

.github/workflows/changeset.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,13 @@ jobs:
5050
- name: Detect breaking changes
5151
id: breaking
5252
run: |
53-
BASE_TAG=$(git describe --tags --abbrev=0 origin/main 2>/dev/null || echo "")
54-
if [ -z "$BASE_TAG" ]; then
55-
echo "No base tag found, skipping breaking change detection"
56-
echo "has_breaking=false" >> "$GITHUB_OUTPUT"
57-
exit 0
58-
fi
59-
60-
echo "Comparing public API against $BASE_TAG"
53+
echo "Comparing public API against main"
6154
6255
dart pub global activate dart_apitool
63-
REPO_URL="git://${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}:${BASE_TAG}"
56+
BASE_REF="git://${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}:main"
6457
6558
DIFF_OUTPUT=$(dart-apitool diff \
66-
--old "$REPO_URL" \
59+
--old "$BASE_REF" \
6760
--new . \
6861
--force-use-flutter 2>&1) || true
6962

0 commit comments

Comments
 (0)