From 395b296d0dcf256f2ea86ec2a1d6445c6895a6bd Mon Sep 17 00:00:00 2001 From: sellnat77 Date: Thu, 2 Apr 2020 20:00:32 -0700 Subject: [PATCH] Cron job for nightly downloads of the last 5yr of 311-data Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest Added test for nightly ingest --- .github/workflows/Nightly_Ingest.yml | 11 +++++++++++ .github/workflows/Publish_Backend_Package.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/Nightly_Ingest.yml diff --git a/.github/workflows/Nightly_Ingest.yml b/.github/workflows/Nightly_Ingest.yml new file mode 100644 index 000000000..356417862 --- /dev/null +++ b/.github/workflows/Nightly_Ingest.yml @@ -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 & diff --git a/.github/workflows/Publish_Backend_Package.yml b/.github/workflows/Publish_Backend_Package.yml index 16fadb675..82d95e215 100644 --- a/.github/workflows/Publish_Backend_Package.yml +++ b/.github/workflows/Publish_Backend_Package.yml @@ -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 }}