From 630bdba68a23c0ac453e015518ef0bf41107a952 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 1 May 2020 09:02:55 -0700 Subject: [PATCH] Just pull for dogsheep repos + sqlite-utils and datasette I accidentally started pulling everything from the dependent repos as well. Commit messages with REFRESH_DB in now trigger a rebuild from scratch. --- .github/workflows/deploy-demo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index 85e1b3f..8946989 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -39,6 +39,8 @@ jobs: run: | echo "{\"github_personal_token\": \"$GITHUB_ACCESS_TOKEN\"}" > auth.json - name: Fetch previous copy of database + if: |- + !contains(github.event.head_commit.message, 'REFRESH_DB') run: |- # So we can keep track of when we first saw each dependent repo wget https://github-to-sqlite.dogsheep.net/github.db @@ -48,7 +50,7 @@ jobs: sqlite-utils tables --counts github.db - name: Fetch releases, commits, issues, contributors run: |- - sqlite-utils github.db "select full_name from repos union select 'simonw/datasette' as full_name union select 'simonw/sqlite-utils' as full_name" \ + sqlite-utils github.db "select full_name from repos where owner = 53015001 union select 'simonw/datasette' as full_name union select 'simonw/sqlite-utils' as full_name" \ --csv --no-headers | while read repo; do github-to-sqlite releases \ github.db $(echo $repo | tr -d '\r');