Skip to content

Commit

Permalink
Merge pull request #495 from hackforla/493_OPS_ingestCron
Browse files Browse the repository at this point in the history
Cron job for nightly downloads of the last 5yr of 311-data
  • Loading branch information
sellnat77 authored Apr 3, 2020
2 parents d91767e + 395b296 commit 866e3a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/Nightly_Ingest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
schedule:
- cron: '0 0 * * *'
jobs:
curl:
runs-on: ubuntu-latest
steps:
- name: curl
uses: wei/curl@master
with:
args: ${{secrets.DB_URL}}/ingest?years=2015,2016,2017,2018,2019 &
2 changes: 1 addition & 1 deletion .github/workflows/Publish_Backend_Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
heroku config:set -a hackforla-311 PROJECT_URL=${{ secrets.PROJECT_URL }} GITHUB_TOKEN=${{ secrets.GH_ISSUES_TOKEN }}
heroku config:set -a hackforla-311 PROJECT_URL=${{ secrets.PROJECT_URL }} GITHUB_TOKEN=${{ secrets.GH_ISSUES_TOKEN }} TOKEN=${{ secrets.SOCRATA_TOKEN }}

0 comments on commit 866e3a7

Please sign in to comment.