Skip to content

Commit

Permalink
Adjust jq output
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Aug 15, 2023
1 parent 466fbae commit c44778d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-code-freshness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
json=$($aws_command)
if [ ! -z "$json" ]; then
list=$(echo $json | jq -c --arg d "$threshold" '.Parameters[] | select( .Name | contains("/prx/prod/Spire/")) | select(.LastModifiedDate < $d) | .Name')
list=$(echo $json | jq --raw-output -c --arg d "$threshold" '.Parameters[] | select( .Name | contains("/prx/prod/Spire/")) | select(.LastModifiedDate < $d) | .Name')
echo $list
next_token=$(echo $json | jq -r ".NextToken")
if [ -z "$next_token" ]; then
Expand Down

0 comments on commit c44778d

Please sign in to comment.