Skip to content

Sync Calendars

Sync Calendars #9381

Workflow file for this run

name: Sync Calendars
on:
workflow_dispatch:
schedule:
- cron: "*/30 * * * *"
permissions:
contents: read
jobs:
sync:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run ics_caldav_sync.py
run: python3 ics_caldav_sync.py
env:
REMOTE_URL: "${{ secrets.REMOTE_URL }}"
LOCAL_URL: "${{ secrets.LOCAL_URL }}"
LOCAL_CALENDAR_NAME: "${{ env.LOCAL_CALENDAR_NAME }}"
LOCAL_USERNAME: "${{ secrets.LOCAL_USERNAME }}"
LOCAL_PASSWORD: "${{ secrets.LOCAL_PASSWORD }}"