-
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.
- Loading branch information
Showing
1 changed file
with
35 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,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 |