datamade / chicago-council-scrapers

Repo for running Chicago City Council Scrapers
MIT License
5 stars 3 forks source link

populate_person_statistics after scrape #3

Closed derekeder closed 1 year ago

derekeder commented 1 year ago

from https://github.com/datamade/chi-councilmatic/pull/323#discussion_r1065137308, add python manage.py populate_person_statistics to this workflow

@fgregg what's the proper way to do this? create a new directive like so:

populate_statistics:
    runs-on: ubuntu-latest
    needs: scrape
    steps:
      - name: update search index
        uses: michcio1234/heroku-run@0.1.1
        with:
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          heroku_email: ${{ secrets.HEROKU_ACCOUNT }}
          heroku_app_name: ${{ secrets.HEROKU_APP }}
          command: python manage.py populate_person_statistics

or tac it on to the index directive?

fgregg commented 1 year ago

either is fine!

On Mon, Jan 9, 2023 at 6:16 PM Derek Eder @.***> wrote:

from datamade/chi-councilmatic#323 (comment) https://github.com/datamade/chi-councilmatic/pull/323#discussion_r1065137308, add python manage.py populate_person_statistics to this workflow

@fgregg https://github.com/fgregg what's the proper way to do this? create a new directive like so:

populate_statistics: runs-on: ubuntu-latest needs: scrape steps:

  • name: update search index uses: @.*** with: heroku_api_key: ${{ secrets.HEROKU_API_KEY }} heroku_email: ${{ secrets.HEROKU_ACCOUNT }} heroku_app_name: ${{ secrets.HEROKU_APP }} command: python manage.py populate_person_statistics

or tac it on to the index directive?

— Reply to this email directly, view it on GitHub https://github.com/datamade/chicago-council-scrapers/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEDC3KP343NJGZLU64AF2TWRSL4BANCNFSM6AAAAAATV7SOVA . You are receiving this because you were mentioned.Message ID: @.***>