We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414ca05 commit 754c603Copy full SHA for 754c603
.github/workflows/check_api_backwards_compatibility_workflow.yml
@@ -1,9 +1,9 @@
1
name: API Compatibility Check
2
3
on:
4
- pull_request:
+ push:
5
branches:
6
- - main
+ - "pull-request/[0-9]+"
7
paths:
8
- 'megatron/core/**/*.py'
9
- '!megatron/core/tests/**'
@@ -50,10 +50,10 @@ jobs:
50
# Auto-detect latest core release tag (stable versions only, no rc)
51
BASELINE=$(git tag -l 'core_v*' | grep -E '^core_v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)
52
53
- # Fallback if no tags found
+ # Error out if no tags found
54
if [ -z "$BASELINE" ]; then
55
- echo "Warning: No core_v* tags found, using main" >&2
56
- BASELINE="main"
+ echo "Error: No core_v* release tags found. Cannot determine baseline." >&2
+ exit 1
57
fi
58
59
0 commit comments