simonw / big-local-datasette

Publishing a Datasette of open projects from biglocalnews.org
https://biglocal.datasettes.com/
2 stars 0 forks source link

Only pull projects belonging to specific users #14

Closed simonw closed 4 years ago

simonw commented 4 years ago

For the moment I'm just going to fetch the projects where the contact email is biglocalnews@stanford.edu.

simonw commented 4 years ago

Oops, I'm still seeing the old projects because we download the previous databases at the start of the action.

simonw commented 4 years ago

I'll fix that by temporarily disabling the datasette-clone operation. Even better: do that with a conditional:

    - name: Download all .db files
      if: !contains(github.event.head_commit.message, 'REFRESH_DBS')
      env:
        DATASETTE_TOKEN: ${{ secrets.DATASETTE_TOKEN }}
      run: |-
        datasette-clone https://biglocal.datasettes.com/ dbs -v --token=$DATASETTE_TOKEN
simonw commented 4 years ago

This is shipped: https://biglocal.datasettes.com/

The list of email addresses for projects to publish is handled by multiple --contact options here:

https://github.com/simonw/big-local-datasette/blob/84524e786c598b3864ea70e2284c964c8b2d236d/.github/workflows/deploy.yml#L41