Skip to content

Commit 7eca2f4

Browse files
authored
ci: update generate-docs workflow
1 parent 043cf28 commit 7eca2f4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/generate-docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8+
- ".github/workflows/generate-docs.yml"
89
- "types/**"
910
workflow_dispatch:
1011

@@ -22,18 +23,18 @@ jobs:
2223
uses: actions/checkout@v6
2324
with:
2425
repository: BlueLua/bluelua.github.io
25-
path: .docgen
26+
path: ${{ runner.temp }}/docgen
2627

2728
- name: Setup Lua
2829
uses: leafo/gh-actions-lua@v13
2930
with:
3031
luaVersion: "luajit"
3132

3233
- name: Generate docs
33-
run: luajit .docgen/scripts/generate-api-docs.lua types docs
34+
run: luajit "${RUNNER_TEMP}/docgen/scripts/generate-api-docs.lua" types docs
3435

3536
- name: Clean workflow helpers
36-
run: rm -rf .docgen .lua
37+
run: rm -rf .lua
3738

3839
- name: Open docs PR
3940
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)