Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DAACDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Bilal Raees
DAACDemo
Commits
d75c63eb
Commit
d75c63eb
authored
Apr 04, 2023
by
Waqas Riaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated version file
parent
e2c200cc
Pipeline
#4037
failed with stages
in 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
VERSION
VERSION
+0
-1
increment-version.sh
increment-version.sh
+4
-5
No files found.
.gitlab-ci.yml
View file @
d75c63eb
...
...
@@ -8,8 +8,8 @@ auto_versioning_job:
script
:
-
git pull
-
./increment-version.sh
-
git add
VERSION
-
git commit -m "Bump version to $(cat
VERSION
)"
-
git add
version.txt
-
git commit -m "Bump version to $(cat
version.txt
)"
-
git push
only
:
-
master
...
...
VERSION
deleted
100644 → 0
View file @
e2c200cc
increment-version.sh
View file @
d75c63eb
#!/bin/bash
# Read the current version number from the
VERSION
file
VERSION
=
$(
cat
VERSION
)
# Read the current version number from the
version.txt
file
VERSION
=
$(
cat
version.txt
)
# Increment the version number
NEW_VERSION
=
$(
echo
$VERSION
|
awk
-F
.
'{$NF = $NF + 1;} 1'
OFS
=
.
|
sed
's/.$//'
)
# Update the VERSION file with the new version number
echo
$NEW_VERSION
>
VERSION
# Update the version.txt file with the new version number
echo
$NEW_VERSION
>
version.txt
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment