Loading .gitlab-ci.yml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -25,7 +25,7 @@ test: - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json - git config --global user.email "${CI_EMAIL}" - git config --global user.email "${CI_EMAIL}" - git config --global user.name "${CI_USERNAME}" - git config --global user.name "${CI_USERNAME}" - git add -f /spec/updated/generated/full_api.json - git add -f ${PWD}/spec/updated/generated/full_api.json - git commit -m "Update bundled spec." || echo "No changes, nothing to commit!" - git commit -m "Update bundled spec." || echo "No changes, nothing to commit!" - git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git - git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git - git push origin HEAD:$CI_COMMIT_REF_NAME - git push origin HEAD:$CI_COMMIT_REF_NAME Loading Loading
.gitlab-ci.yml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -25,7 +25,7 @@ test: - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json - docker run --network host --rm -v ${PWD}/:/local openapitools/openapi-generator-cli validate -i /local/spec/updated/generated/full_api.json - git config --global user.email "${CI_EMAIL}" - git config --global user.email "${CI_EMAIL}" - git config --global user.name "${CI_USERNAME}" - git config --global user.name "${CI_USERNAME}" - git add -f /spec/updated/generated/full_api.json - git add -f ${PWD}/spec/updated/generated/full_api.json - git commit -m "Update bundled spec." || echo "No changes, nothing to commit!" - git commit -m "Update bundled spec." || echo "No changes, nothing to commit!" - git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git - git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git - git push origin HEAD:$CI_COMMIT_REF_NAME - git push origin HEAD:$CI_COMMIT_REF_NAME Loading