Loading common-openapi/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ Generation of OpenAPI: - echo 'Generate OpenAPI' - ./generateOpenapi.sh ${CI_PROJECT_NAME} project-config.yaml after_script: - version=$(cat version.txt) # Read version from file - cd ${CI_PROJECT_NAME} - | git push --push-option="ci.skip" -u origin "openapi-update-$version" Loading common-openapi/generateOpenapi.sh +6 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ if [ -z "$version" ]; then exit 1 fi # Write version to a file for CI script to use echo "$version" > ../version.txt # Create new branch for the changes in the cloned repo branch_name="openapi-update-$version" echo "\n------ Creating new branch $branch_name --------" Loading Loading @@ -99,7 +102,9 @@ echo "$configs" | while read -r config; do mv "$openapi" ../$1/$openapi # Add to git in cloned repo git add ../$1/$openapi cd ../$1 git add $openapi cd ../doc done echo "\n------ Prepare to push -------" Loading Loading
common-openapi/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ Generation of OpenAPI: - echo 'Generate OpenAPI' - ./generateOpenapi.sh ${CI_PROJECT_NAME} project-config.yaml after_script: - version=$(cat version.txt) # Read version from file - cd ${CI_PROJECT_NAME} - | git push --push-option="ci.skip" -u origin "openapi-update-$version" Loading
common-openapi/generateOpenapi.sh +6 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ if [ -z "$version" ]; then exit 1 fi # Write version to a file for CI script to use echo "$version" > ../version.txt # Create new branch for the changes in the cloned repo branch_name="openapi-update-$version" echo "\n------ Creating new branch $branch_name --------" Loading Loading @@ -99,7 +102,9 @@ echo "$configs" | while read -r config; do mv "$openapi" ../$1/$openapi # Add to git in cloned repo git add ../$1/$openapi cd ../$1 git add $openapi cd ../doc done echo "\n------ Prepare to push -------" Loading