Skip to content

Daily schedule

Daily schedule #329

name: Daily schedule
on:
schedule:
# Schedule for every day at 12:00 CEST
- cron: '0 10 * * *'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
add-calendar-events:
name: Add events to Sanity
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: pnpm/action-setup@v2
- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile
- name: Synchronize calendar events 📅
run: pnpm add-calendar-events
env:
SANITY_TOKEN: ${{ secrets.SANITY_TOKEN }}