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

fixed CI

parent d891b4c4
No related branches found
No related tags found
No related merge requests found
Pipeline #20672 passed
...@@ -44,17 +44,17 @@ stages: ...@@ -44,17 +44,17 @@ stages:
- if [ -f license_header_${CURRENT_YEAR}.txt ]; then - if [ -f license_header_${CURRENT_YEAR}.txt ]; then
# add license headers to new files # add license headers to new files
- echo "File license_header_${CURRENT_YEAR}.txt already exists. License headers are assumed to be updated. Adding headers to new files..." - echo "File license_header_${CURRENT_YEAR}.txt already exists. License headers are assumed to be updated. Adding headers to new files..."
- ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=. --exclude=ci_deps - ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=.
- else - else
# remove license headers of all files # remove license headers of all files
- ./license_manager.sh --remove --path=${CI_PROJECT_DIR} --config-path=. --exclude=ci_deps - ./license_manager.sh --remove --path=${CI_PROJECT_DIR} --config-path=.
# update license headers of all files # update license headers of all files
- export PREV_YEAR=$(( CURRENT_YEAR-1 )) - export PREV_YEAR=$(( CURRENT_YEAR-1 ))
- echo "Creating new file license_header_${CURRENT_YEAR}.txt..." - echo "Creating new file license_header_${CURRENT_YEAR}.txt..."
- git mv license_header_${PREV_YEAR}.txt license_header_${CURRENT_YEAR}.txt - git mv license_header_${PREV_YEAR}.txt license_header_${CURRENT_YEAR}.txt
- sed -i "s/${PREV_YEAR}/${CURRENT_YEAR}/g" license_header_${CURRENT_YEAR}.txt - sed -i "s/${PREV_YEAR}/${CURRENT_YEAR}/g" license_header_${CURRENT_YEAR}.txt
# add new license headers to all files # add new license headers to all files
- ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=. --exclude=ci_deps - ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=.
- fi - fi
- cd .. - cd ..
......
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