Commit d75c63eb authored by Waqas Riaz's avatar Waqas Riaz

updated version file

parent e2c200cc
Pipeline #4037 failed with stages
in 7 seconds
......@@ -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
......
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment