Skip to content

Commit

Permalink
adding
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanjot786 committed Jan 19, 2025
1 parent f8370ee commit 0ebe4c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Run Scraping Script

# Schedule the workflow to run at a specific time using cron syntax.
# Here, it is set to run daily at midnight UTC.
on:
schedule:
- cron: '0 0 * * *'
# Also allow manual triggering of the workflow.
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -41,5 +38,6 @@ jobs:
PG_USER: ${{ secrets.PG_USER }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
PG_PORT: ${{ secrets.PG_PORT }}
PYTHONHTTPSVERIFY: 0
run: |
python main.py
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
dbname=PG_DBNAME,
user=PG_USER,
password=PG_PASSWORD,
port=PG_PORT
port=PG_PORT,
sslmode='require'
)
conn.autocommit = True # Enable auto commit for DDL statements
cursor = conn.cursor()
Expand Down

0 comments on commit 0ebe4c6

Please sign in to comment.