From 965bfefe33bfb4180899bcafd7449fe3c693b728 Mon Sep 17 00:00:00 2001 From: gwen windflower Date: Sun, 17 Mar 2024 08:56:39 -0500 Subject: [PATCH] Try to make build run after data update in workflows yml --- .github/workflows/build.yml | 7 ++++--- .github/workflows/update.yml | 8 ++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) 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