Skip to content

Commit

Permalink
Just pull for dogsheep repos + sqlite-utils and datasette
Browse files Browse the repository at this point in the history
I accidentally started pulling everything from the dependent repos as well.

Commit messages with REFRESH_DB in now trigger a
rebuild from scratch.
  • Loading branch information
simonw authored May 1, 2020
1 parent 61f5347 commit 630bdba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
Expand Down

0 comments on commit 630bdba

Please sign in to comment.