We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2efc45 commit 63b4d0bCopy full SHA for 63b4d0b
actions/get-resource/action.yml
@@ -39,7 +39,9 @@ runs:
39
run: |
40
RESOURCE=$(ctrlc api get resource --id ${{ inputs.resource_id }})
41
42
- echo "resource=$RESOURCE" >> "$GITHUB_OUTPUT"
+ # JSON stringify the resource
43
+ RESOURCE_STRING=$(echo "$RESOURCE" | jq -c '.')
44
+ echo "resource=$RESOURCE_STRING" >> "$GITHUB_OUTPUT"
45
46
# Extract flattened key-value pairs and write to output
47
echo "$RESOURCE" | jq -r 'paths(scalars) as $p | [ ( [ $p[] | tostring ] | join("_") | gsub("/"; "_") ), ( getpath($p) | tostring ) ] | join("=")' | while read -r line; do
0 commit comments