diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 998bcf5..fd90c7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,10 @@ name: Load data into MotherDuck on: - push: - branches: - - main + workflow_call: + secrets: + MOTHERDUCK_TOKEN: + required: true jobs: build: diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index aad3f5e..c8425b7 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,7 +1,9 @@ -name: Scrape latest data +name: Refresh data on: push: + branches: + - main workflow_dispatch: schedule: - cron: "21 11 * * *" @@ -38,4 +40,6 @@ jobs: timestamp=$(date -u) git commit -F message.txt || exit 0 git push - # TODO: add dbt build to MD on fresh data scrape + build_to_md: + uses: .github/workflows/build.yml + needs: scheduled