66 maps :
77 description : " The maps that were found"
88 value : ${{ jobs.collect_data.outputs.maps }}
9+ map_config :
10+ description : " The map config file to use"
11+ value : ${{ jobs.collect_data.outputs.map_config }}
912 alternate_tests :
1013 description : " The alternate tests that were found"
1114 value : ${{ jobs.collect_data.outputs.alternate_tests }}
@@ -22,26 +25,38 @@ jobs:
2225 timeout-minutes : 5
2326 outputs :
2427 maps : ${{ steps.map_finder.outputs.maps }}
28+ map_config : ${{ steps.map_finder.outputs.map_config }}
2529 alternate_tests : ${{ steps.alternate_test_finder.outputs.alternate_tests }}
2630 max_required_byond_client : ${{ steps.max_required_byond_client.outputs.max_required_byond_client }}
2731 required_build_versions : ${{ steps.setup_required_build_versions.outputs.required_build_versions }}
2832
2933 steps :
30- - uses : actions/checkout@v6
34+ - uses : actions/checkout@v7
3135 - name : Find Maps
3236 id : map_finder
3337 run : |
3438 > maps_output.txt
39+ > map_configs.txt
40+
3541 for file in _maps/*.json; do
3642 if ! jq -e '.exclude_from_ci == true' "$file" >/dev/null 2>&1; then
37- echo "\"$(basename "$file" .json)\"" >> maps_output.txt
43+ map_name=$(basename "$file" .json)
44+
45+ echo "\"$map_name\"" >> maps_output.txt
46+ echo "map $map_name" >> map_configs.txt
47+ echo "endmap" >> map_configs.txt
3848 else
3949 echo "Excluded: $file"
4050 fi
4151 done
52+
4253 map_list=$(paste -sd, maps_output.txt)
4354 echo "Maps: $map_list"
4455 echo "maps={\"paths\":[$map_list]}" >> "$GITHUB_OUTPUT"
56+
57+ echo "map_config<<EOF" >> "$GITHUB_OUTPUT"
58+ cat map_configs.txt >> "$GITHUB_OUTPUT"
59+ echo "EOF" >> "$GITHUB_OUTPUT"
4560 - name : Find Alternate Tests
4661 id : alternate_test_finder
4762 run : |
0 commit comments