Skip to content

Trigger Binder Every 6 Hours #52

Trigger Binder Every 6 Hours

Trigger Binder Every 6 Hours #52

name: Trigger Binder Every 6 Hours
on:
schedule:
# Runs every 6 hours (at 12:00 AM, 6:00 AM, 12:00 PM, and 6:00 PM UTC)
- cron: '0 */6 * * *'
workflow_dispatch: # Allows manual trigger via GitHub UI
jobs:
trigger_binder:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # You can adjust this based on your needs
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install selenium
- name: Set up Chrome Driver
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 'latest'
- name: Run Selenium Script
run: |
python scripts/trigger_binder.py