We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c05c241 commit 54fbb6cCopy full SHA for 54fbb6c
action.yml
@@ -24,12 +24,11 @@ runs:
24
- id: settings
25
shell: bash
26
run: |
27
- value=$(atmos describe component \
+ OUTPUT_FILE="${{ inputs.stack }}-${{ inputs.component }}.json"
28
+ atmos describe component \
29
${{ inputs.component }} \
30
-s ${{ inputs.stack }} \
- --format json | \
31
- jq -rc --arg key ${{ inputs.settings-path }} \
32
- '.settings | getpath($key | split("."))' \
33
- )
34
- echo $value
+ --format json \
+ --file "$OUTPUT_FILE" || echo '{}' > "$OUTPUT_FILE"
+ value=$(jq -rc --arg key ${{ inputs.settings-path }} '.settings | getpath($key | split("."))' "$OUTPUT_FILE")
35
echo "value=$value" >> $GITHUB_OUTPUT
0 commit comments