Skip to content

Commit

Permalink
run build-docs workflow on unstable pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 16, 2023
1 parent 3ea28c9 commit a121a09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build-docs

on:
pull_request:
push:
branches:
- unstable

jobs:
docs:
Expand All @@ -14,16 +16,14 @@ jobs:
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.head_ref }}
token: ${{ secrets.JF_BOT_TOKEN }}
- name: Install NPM dependencies
run: npm ci
- name: Build API docs
# TODO: fix jsdoc build errors then remove '|| true' from run command below
run: npm run docs || true
- name: Commit any changes back to the PR
- name: Commit any changes back to the unstable branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update API docs

0 comments on commit a121a09

Please sign in to comment.