Skip to content

chore(fre): ship scrubbed pending delta (8 W nodes + 2 docs) #100

chore(fre): ship scrubbed pending delta (8 W nodes + 2 docs)

chore(fre): ship scrubbed pending delta (8 W nodes + 2 docs) #100

name: openwiki-update

Check failure on line 1 in .github/workflows/openwiki-update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/openwiki-update.yml

Invalid workflow file

You have an error in your yaml syntax
on:
schedule:
# Run nightly at 03:17 UTC (off-hours, low contention).
- cron: "17 3 * * *"
workflow_dispatch:
inputs:
message:
description: "Optional message passed to openwiki --update"
required: false
default: ""
permissions:
contents: write
pull-requests: write
jobs:
openwiki-update:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install openwiki CLI
run: npm install -g openwiki
- name: Run openwiki --update
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
if [ -n "${{ github.event.inputs.message }}" ]; then
openwiki --update "${{ github.event.inputs.message }}"
else
openwiki --update
fi
- name: Open a PR if anything changed
uses: peter-evans/create-pull-request@v6
with:
commit-message: "docs(openwiki): nightly refresh"
title: "docs(openwiki): nightly refresh"
body: |
Automated OpenWiki refresh.
Triggered by the `openwiki-update` workflow. Generated by
`openwiki --update`. Review the diff and merge if the changes
look correct.
branch: openwiki/nightly-${{ github.run_id }}
delete-branch: true