Skip to content

Commit 697d197

Browse files
author
rsora
committed
Use latest version of jq
1 parent dc5ee84 commit 697d197

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/tools/fetch_athena_stats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ queryResult=$( aws athena get-query-results \
7777
EOM
7878

7979
datapoints="["
80-
for row in $(echo "${queryResult}" |jq 'del(.ResultSet.Rows[0])' | jq -r '.ResultSet.Rows[] | .Data' --compact-output); do
80+
for row in $(echo "${queryResult}" | jq 'del(.ResultSet.Rows[0])' | jq -r '.ResultSet.Rows[] | .Data' --compact-output); do
8181
value=$(jq -r ".[1].VarCharValue" <<< "${row}")
8282
tag=$(jq -r ".[0].VarCharValue" <<< "${row}")
8383
# Some splitting to obtain 0.6.0, Windows, 32bit elements from string 0.6.0_Windows_32bit.zip

.github/workflows/arduino-stats.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v1
1818

19+
- name: Get latest jq version
20+
run: |
21+
wget -q https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
22+
chmod +x jq-linux64
23+
alias jq="${{ github.workspace }}/jq-linux64"
24+
1925
- name: Fetch downloads count form Arduino CDN using AWS Athena
2026
id: fetch
2127
env:

0 commit comments

Comments
 (0)