Skip to content

Commit

Permalink
make "documentation job" dispatchable and callable
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 18, 2023
1 parent 6e8dd5f commit b0ff2f9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/check-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Checking the documentation

on:
pull_request:
branches: [main, nightly]
types: [opened, synchronize, reopened]
push:
branches:
- main
- nightly
workflow_dispatch:
inputs:
nu_version:
description: "A semver, e.g. `0.12.3`, or `nightly` for the latest revision of Nushell."
required: true
type: string

workflow_call:
inputs:
nu_version:
description: "A semver, e.g. `0.12.3`, or `nightly` for the latest revision of Nushell."
required: true
type: string

jobs:
check-documentation:
Expand All @@ -18,7 +24,7 @@ jobs:

- uses: hustcer/[email protected]
with:
version: "nightly"
version: ${{ inputs.nu_version }}

- name: Check the documentation
shell: nu {0}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ jobs:
with:
nu_version: "0.88.1"
nupm_revision: "6a9618fa21453bca4000ac33707b7aace0da35c7"

documentation:
uses: ./.github/workflows/check-documentation.yml
with:
nu_version: "0.88.1"

0 comments on commit b0ff2f9

Please sign in to comment.