-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: apply suggestions from code review
Co-authored-by: Moritz Wiesinger <[email protected]> Signed-off-by: Thomas Schuetz <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,43 +40,38 @@ runs: | |
- name: Check out documentation | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: inputs.doc-repo | ||
path: doc-repo | ||
ref: main | ||
token: inputs.token | ||
repository: ${{ inputs.doc-repo }} | ||
path: "doc-repo" | ||
ref: "main" | ||
token: ${{ inputs.token }} | ||
fetch-depth: 0 | ||
|
||
- name: Check out examples | ||
uses: actions/checkout@v3 | ||
if: inputs.update-main == 'true' | ||
with: | ||
repository: inputs.examples-repo | ||
path: example-repo | ||
ref: main | ||
token: inputs.token | ||
repository: ${{ inputs.examples-repo }} | ||
path: "example-repo" | ||
ref: "main" | ||
token: ${{ inputs.token }} | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: pip install -r .github/scripts/doc_update/requirements.txt | ||
shell: bash | ||
|
||
- 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' | ||
|
||
- 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' | ||
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=${{ inputs.main-version }} | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Keptn Sandbox Bot | ||
author_email: [email protected] | ||
cwd: doc-repo | ||
author_name: "Keptn Sandbox Bot" | ||
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 | ||
|
@@ -85,4 +80,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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters