Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/crocs_daily_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Crocs Daily Price Check

on:
# Budapest = UTC+2 (CEST nyáron), UTC+1 (CET télen)
# 06:00 Budapest idő = 04:00 UTC nyáron / 05:00 UTC télen
# A cron UTC-ben fut, ezért mindkettőre beállítjuk:
schedule:
- cron: "0 4 * * *" # 06:00 CEST (április–október)
- cron: "0 5 * * *" # 06:00 CET (október–április)

# Kézi futtatáshoz:
workflow_dispatch:

jobs:
check-crocs-prices:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: crocs-monitor/requirements.txt

- name: Install dependencies
run: pip install -r crocs-monitor/requirements.txt

- name: Run Crocs price checker
env:
GMAIL_USER: ${{ secrets.GMAIL_USER }}
GMAIL_APP_PASSWORD: ${{ secrets.GMAIL_APP_PASSWORD }}
run: python crocs-monitor/crocs_checker.py
Loading