Commit 0a3ccdd0 authored by Davide Ricci's avatar Davide Ricci
Browse files

Update .gitlab-ci.yml file

parent 31c84424
Loading
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -129,12 +129,14 @@ commit_formatted_code:
    - job: run_pylint # Must pass pylint
    - job: apply_autopep8 # Needs the final code state from formatting
      artifacts: true
  script:                                                                                
    - echo "Pushing on validated branch..."                                              
  after_script:                                                                          
  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 validated                                                          
  script:
    - echo "Pushing on $(FORMATTED_BRANCH_NAME) branch..."
  after_script:
    - git add .
    - MAIN_COMMIT_MSG=$(git log -1 --pretty=%B $CI_COMMIT_SHA)
    - |