diff --git a/.github/workflows/compare.yaml b/.github/workflows/compare.yaml index 6060c4b9..98e73b68 100644 --- a/.github/workflows/compare.yaml +++ b/.github/workflows/compare.yaml @@ -73,13 +73,18 @@ jobs: run: | set -e ERROR_FLAG=0 + DEPLOYED_SCHEMAS=$(cat DEPLOYED.txt) for file in ${{ env.CHANGED_FILES }}; do - echo "Comparing $file:" - MAIN_FILE=main-branch/${{ env.SCHEMA_DIR }}/$file - CURRENT_FILE=current-ref/${{ env.SCHEMA_DIR }}/$file - if ! felis --log-level ERROR diff -E -c alembic $MAIN_FILE $CURRENT_FILE; then - echo "Error comparing $file" - ERROR_FLAG=1 + if echo "$DEPLOYED_SCHEMAS" | grep -q "^$file$"; then + echo "Comparing $file:" + MAIN_FILE=main-branch/${{ env.SCHEMA_DIR }}/$file + CURRENT_FILE=current-ref/${{ env.SCHEMA_DIR }}/$file + if ! felis --log-level ERROR diff -E -c alembic $MAIN_FILE $CURRENT_FILE; then + echo "Error comparing $file" + ERROR_FLAG=1 + fi + else + echo "Skipping $file (not in DEPLOYED.txt)" fi done if [ $ERROR_FLAG -ne 0 ]; then diff --git a/python/lsst/sdm_schemas/schemas/DEPLOYED.txt b/python/lsst/sdm_schemas/schemas/DEPLOYED.txt new file mode 100644 index 00000000..0c9b215c --- /dev/null +++ b/python/lsst/sdm_schemas/schemas/DEPLOYED.txt @@ -0,0 +1,4 @@ +dp02_dc2.yaml +dp02_obscore.yaml +dp03_10yr.yaml +dp03_1yr.yaml