Skip to content

Commit cf3a21e

Browse files
chore(internal): detect breaking changes when removing endpoints
1 parent 2526d05 commit cf3a21e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/detect-breaking-changes.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ jobs:
3232
rye sync --all-features
3333
3434
- name: Detect breaking changes
35-
run: ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
35+
run: |
36+
# Try to check out previous versions of the breaking change detection script. This ensures that
37+
# we still detect breaking changes when entire files and their tests are removed.
38+
git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
39+
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}

0 commit comments

Comments
 (0)