Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
3b019a36
Commit
3b019a36
authored
8 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
Latest version in publish script
parent
7ba059ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
publish.sh
+1
-2
1 addition, 2 deletions
publish.sh
with
1 addition
and
2 deletions
publish.sh
+
1
−
2
View file @
3b019a36
...
...
@@ -60,8 +60,7 @@ select_part() {
git pull
--tags
# Look for a version tag in Git. If not found, ask the user to provide one
[
$(
git tag
--points-at
HEAD |
wc
-l
)
==
1
]
||
(
latest_version
=
$(
git describe
--abbrev
=
00
||
\
(
bumpversion
--dry-run
--list
patch |
grep
current_version |
sed
-r
s,
"^.*="
,,
)
||
echo
'0.0.1'
)
latest_version
=
$(
(
bumpversion
--dry-run
--list
patch |
grep
current_version |
sed
-r
s,
"^.*="
,,
)
||
echo
'0.0.1'
)
echo
echo
"Current commit has not been tagged with a version. Latest known version is
$latest_version
."
echo
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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