Skip to content

Commit

Permalink
docs: Added manual dispatch for regen API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored May 31, 2022
1 parent 8440cf1 commit c3e4573
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/regen-docs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Regen Docs
on:
workflow_dispatch:
pull_request:
types: [ closed ]
branches: [ master ]
paths: [ 'apidoc/**' ]

jobs:
regen:
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Trigger Regen

Expand All @@ -34,5 +35,5 @@ jobs:
uses: peter-evans/repository-dispatch@v2
with:
event-type: regen-api-docs
repository: tidev/titanium-docs
token: ${{ secrets.REGEN_DOCS_GITHUB_TOKEN }}
repository: tidev/titanium-docs

0 comments on commit c3e4573

Please sign in to comment.