Skip to content

Commit e0bba15

Browse files
authored
Update update_ml_data.yml
1 parent aacb20b commit e0bba15

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/update_ml_data.yml

Lines changed: 8 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,25 +26,9 @@ 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-
needs: download-ml-perfherder-data
40-
steps:
41-
- name: Checkout repository
42-
uses: actions/checkout@v3
43-
with:
44-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
4529
4630
- name: Download JSON data file
47-
id: download
31+
id: download-engine-data
4832
run: |
4933
wget -O ml-engine-data.json "https://sql.telemetry.mozilla.org/api/queries/106820/results.json?api_key=iIPEZvkm6jzp9eKGbnnEOgj7WmpIpkAvcVECq1aV"
5034
continue-on-error: true
@@ -55,10 +39,13 @@ jobs:
5539
echo "Download failed. Aborting to avoid overwriting previous data."
5640
exit 1
5741
fi
42+
5843
- name: Commit and push if changed
5944
run: |
6045
git config --local user.email "[email protected]"
6146
git config --local user.name "GitHub Actions"
62-
git add ml-engine-data.json
63-
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"
6449
git push
50+
51+

0 commit comments

Comments
 (0)