Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
algorithms
gnss_utils
Commits
ad430b6a
Commit
ad430b6a
authored
3 months ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
fixed CI
parent
d891b4c4
No related branches found
No related tags found
No related merge requests found
Pipeline
#20672
passed
3 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
with
3 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
3
View file @
ad430b6a
...
@@ -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 ..
...
...
This diff is collapsed.
Click to expand it.
Joan Vallvé Navarro
@joanvallve
mentioned in commit
5ab9434e
·
3 months ago
mentioned in commit
5ab9434e
mentioned in commit 5ab9434e8330cdca38ff9c58e117a50435bdc625
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment