-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfcee54
commit 553b4cc
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|