Commit bf5c9cc3 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Debug

parent 4799f612
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"
+6 −1
Original line number Diff line number Diff line
@@ -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 --------"
@@ -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 -------"