-
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
1 parent
8004220
commit 2312beb
Showing
1 changed file
with
28 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,28 @@ | ||
name: Update data | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run every day at 9am (UTC) | ||
- cron: '0 9 * * *' | ||
env: | ||
GIT_AUTHOR_NAME: "GitHub Actions" | ||
GIT_AUTHOR_EMAIL: "[email protected]" | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: us-east-1 | ||
jobs: | ||
update: | ||
name: Update PATH data | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11.8 | ||
cache: pip | ||
- run: pip install -e . | ||
- name: Configure | ||
- run: path-data refresh -cc | ||
- run: path-data update -cc | ||
- run: path-data combine -cc | ||
- run: aws s3 sync data/all.pqt s3://hudcostreets/path/ |