Skip to content

Commit

Permalink
add data import workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Mar 8, 2024
1 parent 72be73c commit 19681dd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/import_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Import data

on:
push:
branches:
- main
schedule:
- cron: '0 9 * * 0' # Run every Sunday at 9am UTC

jobs:
run-script:
runs-on: ubuntu-latest # Define runner OS

steps:
- uses: actions/checkout@v2 # Checkout code from repository

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10" # Replace with specific version if needed

- name: Install pygithub
run: |
python -m pip install pygithub
- name: Run import script
run: |
python import_data_to_readme.py
- name: Add and commit
uses: EndBug/add-and-commit@v9
with:
add: 'plots'
message: 'update hindsight data from remote'
default_author: github_actions

0 comments on commit 19681dd

Please sign in to comment.