Sync Calendars #9377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |