Skip to content
Snippets Groups Projects

Resolve "Wolf license"

Merged Joan Vallvé Navarro requested to merge 198-wolf-license into devel
1 file
+ 7
4
Compare changes
  • Side-by-side
  • Inline
+ 7
4
@@ -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
Loading