Skip to content

Fix SDCOSMO-1956: Runner child doesn't inherit parent's parameters #2134

Fix SDCOSMO-1956: Runner child doesn't inherit parent's parameters

Fix SDCOSMO-1956: Runner child doesn't inherit parent's parameters #2134

Workflow file for this run

name: Documentation
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '*'
- '!*-test'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ main ]
jobs:
generate_and_push_doc_for_openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch all tags since Gradle project version is built upon SCM
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-disabled: true
- name: Generate Markdown documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew openApiMarkdownGenerate
- name: Generate UML documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew openApiUmlGenerate
- name: Set Git identity
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
- name: Push generated documentation if needed
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
git fetch --prune
git pull --rebase --autostash
if [[ `git status --porcelain` ]]; then
git checkout -b api_documentation
git add doc/ openapi/plantuml/
git commit -m "chore(docs): Update generated documentation" \
-m "Co-authored-by: csmplatform <csmplatform@users.noreply.github.com>"
git push --set-upstream origin api_documentation
gh pr create -B main -H api_documentation --title 'Merge api_documentation into main' --body 'Created by Github action'
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
generate_and_push_doc_for_helm_charts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Helm Charts documentation
run: ./scripts/kubernetes/update-helm-chart-readme.sh
- name: Set Git identity
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
- name: Push generated documentation if needed
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
git fetch --prune
git pull --rebase --autostash
if [[ `git status --porcelain` ]]; then
git checkout -b helm_documentation
git add api/kubernetes/*/README.md
git commit -m "chore(docs): Update generated Helm Charts documentations" \
-m "Co-authored-by: csmplatform <csmplatform@users.noreply.github.com>"
git push --set-upstream origin helm_documentation
gh pr create -B main -H helm_documentation --title 'Merge helm_documentation into main' --body 'Created by Github action'
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}