Skip to content

Commit 9752333

Browse files
committed
ci: explicitly compare schema against trodes_to_nwb main branch
- Add explicit 'ref: main' to checkout step - Update error message to reference canonical schema URL - Ensures CI always validates against the main branch schema
1 parent 68f8716 commit 9752333

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
uses: actions/checkout@v4
115115
with:
116116
repository: LorenFrankLab/trodes_to_nwb
117+
ref: main
117118
path: trodes_to_nwb
118119

119120
- name: Compare nwb_schema.json
@@ -130,10 +131,11 @@ jobs:
130131
if [ "$SCHEMA_HASH" != "$PYTHON_SCHEMA_HASH" ]; then
131132
echo "❌ Schema mismatch detected!"
132133
echo "Web app hash: $SCHEMA_HASH"
133-
echo "Python pkg hash: $PYTHON_SCHEMA_HASH"
134+
echo "Python pkg hash: $PYTHON_SCHEMA_HASH (main branch)"
134135
echo ""
135136
echo "The nwb_schema.json files are out of sync between repositories."
136-
echo "Please ensure both repositories use the same schema version."
137+
echo "Please ensure the web app schema matches:"
138+
echo "https://github.com/LorenFrankLab/trodes_to_nwb/blob/main/src/trodes_to_nwb/nwb_schema.json"
137139
exit 1
138140
fi
139141

0 commit comments

Comments
 (0)