Skip to content

Commit

Permalink
Add private input to publish explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 15, 2025
1 parent af9c7e0 commit 0f9537b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,29 @@ inputs:
description: 'Treat warnings as errors'
required: false
default: "false"
private:
description: 'Publishing from a private repository'
required: false
default: "false"

runs:
using: "composite"
steps:
- id: repo-basename
if: ${{ github.repository.private == false }}
if: ${{ inputs.private == 'false' }}
shell: bash
run: 'echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT'

- name: Build public documentation
if: ${{ github.repository.private == false }}
if: ${{ inputs.private == 'false' }}
uses: elastic/docs-builder@main
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
with:
prefix: '${{ steps.repo-basename.outputs.value }}'
strict: ${{ inputs.strict }}

- name: Build private documentation
if: ${{ github.repository.private == true }}
if: ${{ inputs.private != 'false' }}
uses: elastic/docs-builder@main
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
with:
Expand Down

0 comments on commit 0f9537b

Please sign in to comment.