Skip to content

Commit

Permalink
fix: braces and target for main builds
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schuetz <[email protected]>
  • Loading branch information
Thomas Schuetz committed Jan 17, 2023
1 parent d19f240 commit ed16384
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/actions/update-documentation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
default: "false"
target-branch:
description: "Target branch for the documentation"
default: "next"
default: "dev"
required: true
token:
description: "Token to access the documentation repository"
Expand All @@ -40,20 +40,20 @@ runs:
- name: Check out documentation
uses: actions/checkout@v3
with:
repository: ${{ inputs.doc-repo }}
repository: inputs.doc-repo
path: doc-repo
ref: main
token: ${{ inputs.token }}
token: inputs.token
fetch-depth: 0

- name: Check out examples
uses: actions/checkout@v3
if: inputs.update-main == 'true'
with:
repository: ${{ inputs.examples-repo }}
repository: inputs.examples-repo
path: example-repo
ref: main
token: ${{ inputs.token }}
token: inputs.token
fetch-depth: 0

- name: Install dependencies
Expand All @@ -63,11 +63,11 @@ runs:
- name: Update documentation
run: python .github/actions/update-documentation/scripts/doc_update/update_docs.py --version ${{ inputs.version }} --klt-docs doc-repo --klt-repo ${{ inputs.klt-repo }} --klt-examples ${{ inputs.examples-repo }} --update-main
shell: bash
if : ${{ inputs.main-version == 'true' }}
if : inputs.main-version == 'true'

- run: python .github/actions/update-documentation/scripts/doc_update/update_docs.py --version ${{ inputs.version }} --klt-docs doc-repo --klt-repo ${{ inputs.klt-repo }} --klt-examples ${{ inputs.examples-repo }}
shell: bash
if: ${{ inputs.main-version != 'true' }}
if: inputs.main-version != 'true'

- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand All @@ -76,7 +76,7 @@ runs:
author_email: [email protected]
cwd: doc-repo
message: "Update documentation for version ${{ inputs.version }}"
new_branch: ${{ inputs.target-branch }}
new_branch: inputs.target-branch

- name: Commit changes to examples
uses: EndBug/add-and-commit@v9
Expand All @@ -85,4 +85,4 @@ runs:
author_email: [email protected]
cwd: examples-repo
message: "Update examples for version ${{ inputs.version }}"
new_branch: ${{ inputs.target-branch }}
new_branch: inputs.target-branch
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,6 @@ jobs:
uses: ./.github/actions/update-documentation
if: github.event_name == 'push' && needs.prepare_ci_run.outputs.NON_FORKED_AND_NON_ROBOT_RUN == 'true'
with:
version: "next"
version: "dev"
klt-repo: ${{ github.workspace }}
token: ${{ secrets.KEPTN_SANDBOX_BOT_TOKEN }}
Empty file added docs/.htmltest.yml
Empty file.

0 comments on commit ed16384

Please sign in to comment.