Skip to content

Update Content (Cron) #14767

Update Content (Cron)

Update Content (Cron) #14767

name: Update Content (Cron)
on:
schedule:
- cron: '*/10 * * * *' # Run every 10 minutes
workflow_dispatch:
inputs:
cron:
description: 'Cron schedule'
required: false
default: '*/10 * * * *'
jobs:
update-content:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Deploy
uses: ./.github/actions/build-and-deploy
with:
notion_api_key: ${{ secrets.NOTION_API_KEY }}
database_id: ${{ secrets.DATABASE_ID }}
website_tag: ${{ secrets.WEBSITE_TAG }}
base_url: /${{ github.event.repository.name }}