Skip to content

Commit

Permalink
kick off etl nightly and quarterly for opennenss project
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Feb 7, 2024
1 parent fd960a8 commit a5129f6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: make upload-to-s3

etl:
needs: build
runs-on: ubuntu-latest
steps:
- name: clear cache
uses: michcio1234/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_email: ${{ secrets.HEROKU_ACCOUNT }}
heroku_app_name: ${{ secrets.HEROKU_APP }}
command: make nightly
26 changes: 26 additions & 0 deletions .github/workflows/quarterly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is a basic workflow to help you get started with Actions

name: Do a quarterly data load


# Controls when the action will run.
on:
schedule:
- cron: '15 2 1 */3 *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
etl:
needs: build
runs-on: ubuntu-latest
steps:
- name: clear cache
uses: michcio1234/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_email: ${{ secrets.HEROKU_ACCOUNT }}
heroku_app_name: ${{ secrets.HEROKU_APP }}
command: make quarterly

0 comments on commit a5129f6

Please sign in to comment.