diff --git a/.github/workflows/run_scrape_flatmates.yml b/.github/workflows/run_scrape_flatmates.yml index 5ee7d00..e70b387 100644 --- a/.github/workflows/run_scrape_flatmates.yml +++ b/.github/workflows/run_scrape_flatmates.yml @@ -2,9 +2,11 @@ name: Flatmates Scraper on: workflow_dispatch: - - schedule: - - cron: '0 10 * * 6' + +# the scraper no longer works :/ + +# schedule: +# - cron: '0 10 * * 6' jobs: build: @@ -13,30 +15,27 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: python-version: '3.10' - - - name: Run flatmates script - run: pip install -r src/requirements.txt - name: Run flatmates script run: | + pip install -r src/requirements.txt make extract make load - # Runs a set of commands using the runners shell - - - name: Commit files + # commit directly to main + - name: Commit files run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git pull git add * git commit -m "weekly flatmates scrape" -a --allow-empty - - - name: GitHub Push + + # push changes to main + - name: GitHub Push uses: ad-m/github-push-action@v0.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }}