So i have a github actions that fetches a json and then extracts a specific field into a new json array using
jq -r '[.hits[].id]'
which results in this file: https://github.com/Jodsderechte/Jodsderechte.github.io/blob/main/Data/WaList_Converted.json
however if i try to use that in a matrix job using
${{fromJson(needs.setup.outputs.wa_List)}}
i get
Error when evaluating 'strategy' for job 'Request'. .github/workflows/RequestWagoData.yml (Line: 67, Col: 19): Error parsing fromJson,.github/workflows/RequestWagoData.yml (Line: 67, Col: 19): Error parsing fromJson,.github/workflows/RequestWagoData.yml (Line: 67, Col: 19): Error reading JToken from JsonReader. Path '', line 0, position 0.,.github/workflows/RequestWagoData.yml (Line: 67, Col: 19): Unexpected value ''
I guess this is because of the newlines but i'm not sure. i tried like a million different things trying to follow the advice in How to Remove \n and \r from JSON string using Bash? and Github Actions: How use strategy/matrix with script
but i can't for the live of me figure it out
https://github.com/Jodsderechte/Jodsderechte.github.io/edit/main/.github/workflows/RequestWagoData.yml here is the whole action including my history of 300 failed atempts of getting this to work