Loading .gitlab-ci.yml +6 −5 Original line number Diff line number Diff line Loading @@ -131,13 +131,14 @@ commit_formatted_code: - job: apply_autopep8 # Needs the final code state from formatting artifacts: true before_script: - git fetch origin ${FORMATTED_BRANCH_NAME} - git checkout ${FORMATTED_BRANCH_NAME} - git config --global user.email "davide.ricci@inaf.it" - git config --global user.name "CI Bot" - git checkout "$CI_COMMIT_SHA" script: - echo "Pushing on ${FORMATTED_BRANCH_NAME} branch..." - echo "Checking for changes and committing to ${FORMATTED_BRANCH_NAME} branch..." - git add . - echo "Creating/updating branch '${FORMATTED_BRANCH_NAME}' based on commit $CI_COMMIT_SHA..." - git checkout -B "${FORMATTED_BRANCH_NAME}" "$CI_COMMIT_SHA" - MAIN_COMMIT_MSG=$(git log -1 --pretty=%B $CI_COMMIT_SHA) - | git commit -m "$MAIN_COMMIT_MSG Loading @@ -145,7 +146,7 @@ commit_formatted_code: - Date: $(date +"%Y-%m-%d %H:%M:%S") - Job ID: $CI_JOB_ID - Pipeline ID: $CI_PIPELINE_ID" - git pull - git push https://davide.ricci:$GITLAB_TOKEN@www.ict.inaf.it/gitlab/davide.ricci/software-di-controllo.git ${FORMATTED_BRANCH_NAME} - git checkout -B "${FORMATTED_BRANCH_NAME}" "$CI_COMMIT_SHA" - git push --force https://davide.ricci:$GITLAB_TOKEN@www.ict.inaf.it/gitlab/davide.ricci/software-di-controllo.git ${FORMATTED_BRANCH_NAME} Loading
.gitlab-ci.yml +6 −5 Original line number Diff line number Diff line Loading @@ -131,13 +131,14 @@ commit_formatted_code: - job: apply_autopep8 # Needs the final code state from formatting artifacts: true before_script: - git fetch origin ${FORMATTED_BRANCH_NAME} - git checkout ${FORMATTED_BRANCH_NAME} - git config --global user.email "davide.ricci@inaf.it" - git config --global user.name "CI Bot" - git checkout "$CI_COMMIT_SHA" script: - echo "Pushing on ${FORMATTED_BRANCH_NAME} branch..." - echo "Checking for changes and committing to ${FORMATTED_BRANCH_NAME} branch..." - git add . - echo "Creating/updating branch '${FORMATTED_BRANCH_NAME}' based on commit $CI_COMMIT_SHA..." - git checkout -B "${FORMATTED_BRANCH_NAME}" "$CI_COMMIT_SHA" - MAIN_COMMIT_MSG=$(git log -1 --pretty=%B $CI_COMMIT_SHA) - | git commit -m "$MAIN_COMMIT_MSG Loading @@ -145,7 +146,7 @@ commit_formatted_code: - Date: $(date +"%Y-%m-%d %H:%M:%S") - Job ID: $CI_JOB_ID - Pipeline ID: $CI_PIPELINE_ID" - git pull - git push https://davide.ricci:$GITLAB_TOKEN@www.ict.inaf.it/gitlab/davide.ricci/software-di-controllo.git ${FORMATTED_BRANCH_NAME} - git checkout -B "${FORMATTED_BRANCH_NAME}" "$CI_COMMIT_SHA" - git push --force https://davide.ricci:$GITLAB_TOKEN@www.ict.inaf.it/gitlab/davide.ricci/software-di-controllo.git ${FORMATTED_BRANCH_NAME}