Skip to content

Commit e72a07e

Browse files
authored
Merge pull request #2 from mozilla/vazish-fix-ml-data-pull
Fix ML data pull
2 parents 6cf3415 + ef6b029 commit e72a07e

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/update_ml_data.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '10 2 * * *' # Runs daily at 2 AM UTC
77

88
jobs:
9-
download-ml-perfherder-data:
9+
download-ml-data:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
@@ -15,7 +15,7 @@ jobs:
1515
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
1616

1717
- name: Download JSON data file
18-
id: download
18+
id: download-perfderder-data
1919
run: |
2020
wget -O ml-data.json "https://sql.telemetry.mozilla.org/api/queries/104013/results.json?api_key=iIPEZvkm6jzp9eKGbnnEOgj7WmpIpkAvcVECq1aV"
2121
continue-on-error: true
@@ -26,26 +26,11 @@ jobs:
2626
echo "Download failed. Aborting to avoid overwriting previous data."
2727
exit 1
2828
fi
29-
- name: Commit and push if changed
30-
run: |
31-
git config --local user.email "[email protected]"
32-
git config --local user.name "GitHub Actions"
33-
git add ml-data.json
34-
git diff --cached --quiet || git commit -m "Update ml-data.json"
35-
git push
36-
37-
download-ml-feature-data:
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
42-
with:
43-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
4429
4530
- name: Download JSON data file
46-
id: download
31+
id: download-engine-data
4732
run: |
48-
wget -O ml-engine-data.json "https://sql.telemetry.mozilla.org/api/queries/106820/results.json?api_key=iIPEZvkm6jzp9eKGbnnEOgj7WmpIpkAvcVECq1aV"
33+
wget -O ml-engine-data.json "https://sql.telemetry.mozilla.org/api/queries/106820/results.json?api_key=pHCFadcoRdAYypOMPoKJw1uaHL1lzzgRy0g7HUZJ"
4934
continue-on-error: true
5035

5136
- name: Check if download succeeded
@@ -54,10 +39,13 @@ jobs:
5439
echo "Download failed. Aborting to avoid overwriting previous data."
5540
exit 1
5641
fi
42+
5743
- name: Commit and push if changed
5844
run: |
5945
git config --local user.email "[email protected]"
6046
git config --local user.name "GitHub Actions"
61-
git add ml-engine-data.json
62-
git diff --cached --quiet || git commit -m "Update ml-engine-data.json"
47+
git add ml-data.json ml-engine-data.json
48+
git diff --cached --quiet || git commit -m "Update ml-data.json & ml-engine-data.json"
6349
git push
50+
51+

ml-engine-data.json

Whitespace-only changes.

0 commit comments

Comments
 (0)