Skip to content

Commit d21841f

Browse files
authored
docs: Added manual dispatch for regen API docs
1 parent c18cbd0 commit d21841f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/regen-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: Regen Docs
22
on:
3+
workflow_dispatch:
34
pull_request:
45
types: [ closed ]
56
branches: [ master ]
67
paths: [ 'apidoc/**' ]
78

89
jobs:
910
regen:
10-
if: github.event.pull_request.merged == true
11+
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
1112
runs-on: ubuntu-latest
1213
name: Trigger Regen
1314

@@ -34,5 +35,5 @@ jobs:
3435
uses: peter-evans/repository-dispatch@v2
3536
with:
3637
event-type: regen-api-docs
37-
repository: tidev/titanium-docs
3838
token: ${{ secrets.REGEN_DOCS_GITHUB_TOKEN }}
39+
repository: tidev/titanium-docs

0 commit comments

Comments
 (0)