Skip to content

Commit 0eb2d25

Browse files
committed
[skip changelog] Update workflow and script to fetch Arduino CDN download data
1 parent e9db1c0 commit 0eb2d25

File tree

2 files changed

+6
-123
lines changed

2 files changed

+6
-123
lines changed

Diff for: .github/tools/fetch_athena_stats.sh

-118
This file was deleted.

Diff for: .github/workflows/arduino-stats.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v2
2020

21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.x'
24+
2125
- name: Fetch downloads count form Arduino CDN using AWS Athena
2226
id: fetch
2327
env:
@@ -27,11 +31,8 @@ jobs:
2731
AWS_ATHENA_OUTPUT_LOCATION: ${{ secrets.STATS_AWS_ATHENA_OUTPUT_LOCATION }}
2832
GITHUB_REPOSITORY: ${{ github.repository }}
2933
run: |
30-
# Fetch jq 1.6 as VM has only 1.5 ATM
31-
wget -q https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq
32-
chmod +x jq
33-
PATH="${{ github.workspace }}:$PATH"
34-
.github/tools/fetch_athena_stats.sh
34+
pip install boto3 semver
35+
python .github/tools/fetch_athena_stats.py
3536
3637
- name: Send metrics
3738
uses: masci/datadog@v1

0 commit comments

Comments
 (0)