-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.05 KB
/
run_scrape_flatmates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Flatmates Scraper
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 6'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
-
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run flatmates script
run: pip install -r src/requirements.txt
- name: Run flatmates script
run: |
make extract
make load
# Runs a set of commands using the runners shell
-
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
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: true