Skip to content

Create documentation workflow #1

Create documentation workflow

Create documentation workflow #1

Workflow file for this run

name: Generate Documentation
on:
pull_request:
branches: [ main ]
repository_dispatch:
types: [ generate ]
workflow_dispatch:
schedule:
- cron: '15 5 * * *'
permissions:
contents: write
jobs:
build:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/www.libgit2.org-docs'
name: "Generate documentation"
runs-on: "ubuntu-latest"
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
path: docs
fetch-depth: 0
- name: Set up documentation generator
run: npm install
- name: Generate documentation
run: ./generate docs
- name: Examine repository
run: git status
path: docs

Check failure on line 34 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Generate Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 34, Col: 7): Unexpected value 'path'