-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from georgetown-cset/292-automate-data-prs
Add data pr workflow; download new data programmatically from gcs
- Loading branch information
Showing
10 changed files
with
265 additions
and
198 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 @@ | ||
name: Update Data | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 15 * *" | ||
|
||
jobs: | ||
scheduled-job: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: 'write' | ||
id-token: 'write' | ||
pull-requests: 'write' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Authenticate to Google Cloud' | ||
id: 'auth' | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
workload_identity_provider: 'projects/855475113448/locations/global/workloadIdentityPools/eto-github/providers/eto-github' | ||
service_account: '[email protected]' | ||
create_credentials_file: 'true' | ||
token_format: 'access_token' | ||
- name: Update data | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
PYTHONPATH='.' python3 scripts/preprocess_for_website.py | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: Update datasets | ||
add-paths: | | ||
github-metrics/src/data/* | ||
github-metrics/static/* | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: Data update | ||
reviewers: jmelot |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"start_year": 2017, "end_year": 2023, "last_updated": "December 05, 2023"} | ||
{"start_year": 2017, "end_year": 2023, "last_updated": "December 19, 2023"} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
["Knowledge management", "Bioinformatics", "World Wide Web", "Automotive engineering", "Social psychology", "riscv", "Social science", "Mathematical optimization", "Machine learning", "Parallel computing", "Organic chemistry", "Microbiology", "Transport engineering", "Molecular biology", "Atmospheric sciences", "Epistemology", "Oceanography", "Advertising", "Mathematical analysis", "Artificial intelligence", "Optics", "Computational chemistry", "Cardiology", "Software engineering", "Simulation", "Agronomy", "Cancer research", "Particle physics", "Theoretical computer science", "Hydrology", "Radiology", "Renewable Energy", "Botany", "Gender studies", "Control theory", "Anatomy", "Medical education", "Finance", "Astrophysics", "Cell biology", "Financial system", "Algebra", "Reliability engineering", "International economics", "Linguistics", "Econometrics", "Quantum mechanics", "Topology", "Zoology", "Neuroscience", "Geophysics", "Genetics", "Quantum electrodynamics", "Information retrieval", "Sustainable Development", "Cognitive science", "Food science", "Thermodynamics", "Condensed matter physics", "Energy Storage", "Data science", "Pattern recognition", "Embedded system", "Acoustics", "Nuclear physics", "Computational biology", "Astrobiology", "Geometry", "Water resource management", "Climate and Earth Science", "Surgery", "Emissions", "Pharmacology", "Computer vision", "Computer security", "Financial economics", "Visual arts", "Energy Systems", "Ecology", "Virology", "Natural language processing", "Pathology", "Consumption of Energy and Resources", "Remote sensing", "Evolutionary biology", "Natural Resources", "Media studies", "Speech recognition", "Meteorology", "Immunology", "Classics", "Industrial Ecology", "Computer graphics (images)", "ai_safety", "Nuclear magnetic resonance", "Computational physics", "Astronomy", "Distributed computing", "Multimedia", "Earth Systems", "weto", "Operating system"] | ||
["Computer graphics (images)", "Botany", "Financial system", "Radiology", "Condensed matter physics", "Computer security", "Artificial intelligence", "Cardiology", "Geophysics", "Surgery", "Acoustics", "Consumption of Energy and Resources", "Epistemology", "Natural Resources", "Econometrics", "Quantum electrodynamics", "Finance", "Nuclear magnetic resonance", "Pattern recognition", "Knowledge management", "Climate and Earth Science", "Simulation", "Control theory", "International economics", "Cognitive science", "Computational biology", "Immunology", "Reliability engineering", "ai_safety", "Anatomy", "Linguistics", "Meteorology", "Machine learning", "Quantum mechanics", "Financial economics", "Ecology", "Zoology", "Optics", "Sustainable Development", "Speech recognition", "Bioinformatics", "Mathematical analysis", "Computational chemistry", "Atmospheric sciences", "Organic chemistry", "Topology", "Pharmacology", "Operating system", "Natural language processing", "Hydrology", "Software engineering", "Embedded system", "Computational physics", "Nuclear physics", "Earth Systems", "Algebra", "Distributed computing", "Parallel computing", "Astrobiology", "Genetics", "Industrial Ecology", "weto", "Food science", "Oceanography", "Virology", "Astrophysics", "Cell biology", "World Wide Web", "Multimedia", "Gender studies", "Thermodynamics", "Water resource management", "Neuroscience", "Visual arts", "Computer vision", "Energy Storage", "Renewable Energy", "Information retrieval", "Cancer research", "Microbiology", "Mathematical optimization", "Molecular biology", "Energy Systems", "Social science", "Transport engineering", "Pathology", "riscv", "Evolutionary biology", "Automotive engineering", "Advertising", "Classics", "Media studies", "Geometry", "Social psychology", "Particle physics", "Data science", "Agronomy", "Remote sensing", "Astronomy", "Medical education", "Emissions", "Theoretical computer science"] |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -10,4 +10,5 @@ pycountry | |
tqdm | ||
coverage | ||
google-cloud-secret-manager | ||
google-cloud-storage | ||
linkchecker |
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
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