Skip to content

Commit

Permalink
Try to make build run after data update in workflows yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenwindflower committed Mar 17, 2024
1 parent 4fb6608 commit 965bfef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Load data into MotherDuck

on:
push:
branches:
- main
workflow_call:
secrets:
MOTHERDUCK_TOKEN:
required: true

jobs:
build:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Scrape latest data
name: Refresh data

on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "21 11 * * *"
Expand Down Expand Up @@ -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

0 comments on commit 965bfef

Please sign in to comment.