Skip to content
Snippets Groups Projects
Commit 4a32feeb authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Update .gitlab-ci.yml file

parent bff4c1f6
No related branches found
No related tags found
1 merge request!427Resolve "Wolf license"
Pipeline #7337 failed
This commit is part of merge request !427. Comments created here will be created in the context of that merge request.
......@@ -21,6 +21,11 @@
- apt-get update
.license_header_template: &license_header_definition
# configure git
- git config --global user.email "${CI_EMAIL}"
- git config --global user.name "${CI_USERNAME}"
- git checkout -b ci_processing # temporary branch
- echo "current year of the headers:" ${LICENSE_HEADER_YEAR}
- export LICENSE_HEADER_YEAR_NEW=$( date +'%Y' )
# UPDATE: check if license headers have to be updated
......@@ -35,16 +40,14 @@
# ADD: add license headers
- else
- cd wolf_scripts
- ./license_manager.sh --add --path=.. --license-header=license_header_${LICENSE_HEADER_YEAR}.txt
- ./license_manager.sh --add --path=${PWD}/.. --license-header=license_header_${LICENSE_HEADER_YEAR}.txt
- fi
- cd ..
# push changes (if any)
- git config --global user.email "${CI_EMAIL}"
- git config --global user.name "${CI_USERNAME}"
- if git commit -u -m "[skip ci] license headers added or modified" ; then
- git remote set-url --push origin "ssh://git@gitlab.iri.upc.edu:2202/${CI_PROJECT_PATH}.git"
- git push origin HEAD:${CI_COMMIT_REF_NAME}
- git push origin ci_processing:${CI_COMMIT_REF_NAME}
- else
- echo "No changes, nothing to commit!"
- fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment