From 5dd046dfade556f08fda53fb3ccda70334fa3fcc Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 17 Jan 2023 15:47:17 +0100 Subject: [PATCH] ci: fix python script flags (#639) --- .../actions/update-documentation/action.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/actions/update-documentation/action.yml b/.github/actions/update-documentation/action.yml index 2742e2be94..0a2a636d0a 100644 --- a/.github/actions/update-documentation/action.yml +++ b/.github/actions/update-documentation/action.yml @@ -61,8 +61,25 @@ runs: shell: bash - name: Update documentation + if: inputs.main-version != 'true' shell: bash - run: python .github/actions/update-documentation/scripts/update_docs.py --version ${{ inputs.version }} --klt-docs doc-repo --klt-repo ${{ inputs.klt-repo }} --klt-examples ${{ inputs.examples-repo }} --update-main=${{ inputs.main-version }} + run: | + python .github/actions/update-documentation/scripts/update_docs.py \ + --version ${{ inputs.version }} \ + --klt-docs doc-repo \ + --klt-repo ${{ inputs.klt-repo }} \ + --klt-examples ${{ inputs.examples-repo }} + + - name: Update documentation + if: inputs.main-version == 'true' + shell: bash + run: | + python .github/actions/update-documentation/scripts/update_docs.py \ + --version ${{ inputs.version }} \ + --klt-docs doc-repo \ + --klt-repo ${{ inputs.klt-repo }} \ + --klt-examples ${{ inputs.examples-repo }} \ + --update-main - name: Commit changes uses: EndBug/add-and-commit@v9