Skip to content

Scheduled Update

Scheduled Update #260

Workflow file for this run

name: Scheduled Update
on:
schedule:
# 9:00 AM EST / 10:00 AM EDT
- cron: '00 14 * * 1,3,5'
- cron: '00 14 * * 0,4'
- cron: '00 14 * * 2,6'
# Enable testing this workflow manually from the Actions tab
workflow_dispatch:
inputs:
index-repo:
description: "Registry index repository"
type: string
required: false
default: leanprover/reservoir-index
testbed-size:
description: "Max number of testbed entries"
type: number
required: false
default: 256
testbed-toolchain:
description: "Lean toolchain(s) to test against"
type: string
required: true
default: package
# GITHUB_TOKEN permissions needed for deployment (copied from website.yml)
permissions:
contents: read
statuses: write
jobs:
index:
name: Index
uses: ./.github/workflows/index.yml
secrets: inherit
with:
index-repo: ${{ inputs.index-repo || 'leanprover/reservoir-index' }}
update-index: true
testbed:
needs: index
name: Testbed
uses: ./.github/workflows/testbed.yml
secrets: inherit
with:
index-repo: ${{ inputs.index-repo || 'leanprover/reservoir-index' }}
toolchain: ${{ inputs.testbed-toolchain || github.event.schedule == '00 14 * * 1,3,5' && 'package' || github.event.schedule == '00 14 * * 0,4' && 'latest' || 'stable'}}
max-size: ${{ inputs.testbed-size == null && 256 || fromJson(inputs.testbed-size) }}
update-index: true
website:
needs: [index, testbed]
name: Website
uses: ./.github/workflows/website.yml
secrets: inherit
with:
index-repo: ${{ inputs.index-repo || 'leanprover/reservoir-index' }}
production-deploy: true