Skip to content

Commit 754c603

Browse files
committed
adjustments 1
Signed-off-by: Pablo Garay <[email protected]>
1 parent 414ca05 commit 754c603

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/check_api_backwards_compatibility_workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: API Compatibility Check
22

33
on:
4-
pull_request:
4+
push:
55
branches:
6-
- main
6+
- "pull-request/[0-9]+"
77
paths:
88
- 'megatron/core/**/*.py'
99
- '!megatron/core/tests/**'
@@ -50,10 +50,10 @@ jobs:
5050
# Auto-detect latest core release tag (stable versions only, no rc)
5151
BASELINE=$(git tag -l 'core_v*' | grep -E '^core_v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)
5252
53-
# Fallback if no tags found
53+
# Error out if no tags found
5454
if [ -z "$BASELINE" ]; then
55-
echo "Warning: No core_v* tags found, using main" >&2
56-
BASELINE="main"
55+
echo "Error: No core_v* release tags found. Cannot determine baseline." >&2
56+
exit 1
5757
fi
5858
fi
5959

0 commit comments

Comments
 (0)