From ad430b6ae3ec8d791e1a475a4f6676bc2ce3a7f8 Mon Sep 17 00:00:00 2001 From: joanvallve <jvallve@iri.upc.edu> Date: Thu, 6 Feb 2025 16:47:12 +0100 Subject: [PATCH] fixed CI --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98096a3..25cb9a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,17 +44,17 @@ stages: - if [ -f license_header_${CURRENT_YEAR}.txt ]; then # 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..." - - ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=. --exclude=ci_deps + - ./license_manager.sh --add --path=${CI_PROJECT_DIR} --config-path=. - else # 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 - export PREV_YEAR=$(( CURRENT_YEAR-1 )) - echo "Creating new file 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 # 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 - cd .. -- GitLab