@@ -229,21 +229,18 @@ jobs:
229229 exit 0
230230 fi
231231
232- # Use changelog_manager.rb but pointed at TEST-CHANGELOG.md
233- # We need to temporarily swap CHANGELOG.md for the test
234- # Back up real CHANGELOG, replace with test, run manager, restore
232+ # Use changelog_manager.rb pointed at TEST-CHANGELOG.md
233+ # Pass real version names so changelog_manager validates and runs
234+ # exactly like production. It reads from the real v20111101/package.json
235+ # (not test-v20111101/) — the version number won't match the test config,
236+ # but the workflow mechanics are what we're validating here.
235237 cp CHANGELOG.md CHANGELOG.md.bak
236238 cp TEST-CHANGELOG.md CHANGELOG.md
237239
238- # *** ISSUE 2 FIX: Pass test directory names to changelog_manager.rb ***
239- # Instead of "v20111101", pass "test-v20111101" so changelog_manager reads from
240- # test-v20111101/package.json (version 98.1.0) not v20111101/package.json (version 2.0.0)
241- TEST_VERSIONS_CSV=$(echo "$GENERATED_VERSIONS" | xargs | sed 's/v20111101/test-v20111101/g' | sed 's/v20250224/test-v20250224/g' | tr ' ' ',')
242- echo "📋 Updating TEST-CHANGELOG for versions: $TEST_VERSIONS_CSV"
243- echo "📋 (directory names: converting api versions to test- prefixed directories)"
244- ruby .github/changelog_manager.rb "$TEST_VERSIONS_CSV"
240+ VERSIONS_CSV=$(echo "$GENERATED_VERSIONS" | xargs | tr ' ' ',')
241+ echo "📋 Updating TEST-CHANGELOG for versions: $VERSIONS_CSV"
242+ ruby .github/changelog_manager.rb "$VERSIONS_CSV"
245243
246- # Move updated changelog to TEST-CHANGELOG and restore real one
247244 cp CHANGELOG.md TEST-CHANGELOG.md
248245 mv CHANGELOG.md.bak CHANGELOG.md
249246
0 commit comments