-
Notifications
You must be signed in to change notification settings - Fork 17
59 lines (50 loc) · 1.7 KB
/
docgen.yml
File metadata and controls
59 lines (50 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Regenerate stdlib reference
# Regenerates the auto-documentation under _doc/stdlib/ref/ from the WurstStdlib2 hotdoc and
# opens a PR with the result. Runs on demand, weekly, or when WurstStdlib2 dispatches an event.
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1" # Mondays 06:00 UTC
repository_dispatch:
types: [stdlib-updated]
permissions:
contents: write
pull-requests: write
concurrency:
group: stdlib-docgen
cancel-in-progress: true
jobs:
docgen:
runs-on: ubuntu-latest
steps:
- name: Checkout website
uses: actions/checkout@v4
- name: Checkout WurstStdlib2
uses: actions/checkout@v4
with:
repository: wurstscript/WurstStdlib2
ref: master
path: _stdlib
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Generate reference
working-directory: tools/docgen
run: deno task gen --src "$GITHUB_WORKSPACE/_stdlib/wurst" --out "$GITHUB_WORKSPACE"
- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: auto/stdlib-docgen
delete-branch: true
base: master
title: "docs(stdlib): regenerate API reference"
commit-message: "docs(stdlib): regenerate API reference"
body: |
Automated regeneration of the stdlib API reference from the latest
[WurstStdlib2](https://github.com/wurstscript/WurstStdlib2) hotdoc.
Generated by `.github/workflows/docgen.yml` (`tools/docgen`).
add-paths: |
_doc/stdlib/ref/**
_data/stdlib_index.json