From 0f9537b07734967549c4aa031a083a75a2ba9ccb Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 15 Jan 2025 17:05:28 +0100 Subject: [PATCH] Add private input to publish explicitly --- actions/publish/action.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/actions/publish/action.yml b/actions/publish/action.yml index 67aeb52..df7005d 100644 --- a/actions/publish/action.yml +++ b/actions/publish/action.yml @@ -18,17 +18,21 @@ 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: @@ -36,7 +40,7 @@ runs: 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: