-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c37efed
commit 7278383
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Update Datasets | ||
|
||
on: | ||
push: | ||
paths: | ||
- agml/_assets/public_datasources.json | ||
pull_request: | ||
paths: | ||
- agml/_assets/public_datasources.json | ||
|
||
permissions: read-all|write-all | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.8" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Configure Git | ||
run: | | ||
git config user.name "AgML Dataset Update Bot" | ||
git config user.email "joshi.amoghn@gmail.com" | ||
- name: Update Datasets | ||
run: | | ||
python scripts/run_full_dataset_update.py | ||
git add agml/_assets/* | ||
git commit -m "Updated information for new dataset" | ||
git push origin dev | ||