Skip to content

Commit 979aa84

Browse files
committed
change default working directory in workflow from backend to root
1 parent 50d6f2b commit 979aa84

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/instagram_feed.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
jobs:
99
instagram_feed:
1010
runs-on: ubuntu-latest
11-
defaults:
12-
run:
13-
working-directory: backend
1411
env:
1512
SUPABASE_DB_URL: ${{ secrets.SUPABASE_DB_URL }}
1613
USERNAME: ${{ secrets.USERNAME }}
@@ -49,6 +46,7 @@ jobs:
4946
run: pip install --upgrade pip setuptools wheel
5047

5148
- name: Install dependencies
49+
working-directory: backend
5250
run: pip install -r requirements.txt
5351

5452
- name: Create logs directory

backend/scraping/get_static_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def format_value(value):
1919

2020
def main():
2121
"""Connects to Supabase DB, fetches all events, writes to TS file"""
22+
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
2223
try:
2324
conn_string = os.environ.get("SUPABASE_DB_URL")
2425
logging.info("Connecting to the database...")

0 commit comments

Comments
 (0)