File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -203,18 +203,24 @@ jobs:
203
203
run: |
204
204
nix run nixpkgs#nushell -- -c '
205
205
# Get all results files and process them in one go
206
- let matrix = (
207
- ls **/results.txt
208
- | get name # Get just the file paths
209
- | each { |file| open $file } # Open each file
210
- | each { |content| $content | lines } # Split into lines
211
- | flatten # Flatten the nested lists
212
- | where { |line| $line != "" } # Filter empty lines
213
- | each { |line| {version : $line} } # Create objects
214
- | to json # Convert to JSON
215
- )
206
+ let files = (ls **/results.txt | get name)
207
+ echo $"Found files : ($files)"
216
208
217
- $"matrix=($matrix)" | save --append $env.GITHUB_OUTPUT
209
+ let matrix = {
210
+ include : (
211
+ $files
212
+ | each { |file| open $file } # Open each file
213
+ | each { |content| $content | lines } # Split into lines
214
+ | flatten # Flatten the nested lists
215
+ | where { |line| $line != "" } # Filter empty lines
216
+ | each { |line| {version : $line} } # Create objects
217
+ )
218
+ }
219
+
220
+ let json_output = ($matrix | to json -r) # -r for raw output
221
+ echo $"Debug output : ($json_output)"
222
+
223
+ $"matrix=($json_output)" | save --append $env.GITHUB_OUTPUT
218
224
'
219
225
- name: Debug Combined Results
220
226
run: |
You can’t perform that action at this time.
0 commit comments