#
All checks were successful
FHIR IG CI/CD Pipeline with Version Persistence / build-ig (push) Successful in 7m3s
FHIR IG CI/CD Pipeline with Version Persistence / deploy (push) Successful in 9s

This commit is contained in:
2026-04-27 23:14:45 +06:00
parent 74f3630a65
commit ffd56af45a

View File

@@ -376,10 +376,11 @@ jobs:
echo "Injecting previous version into ig.ini: $PREV_VERSION" echo "Injecting previous version into ig.ini: $PREV_VERSION"
if [ -n "$PREV_VERSION" ]; then if [ -n "$PREV_VERSION" ]; then
# Add or replace previous-version line in ig.ini
if grep -q "^previous-version" ig.ini; then if grep -q "^previous-version" ig.ini; then
sed -i "s/^previous-version.*/previous-version = $PREV_VERSION/" ig.ini sed -i "s/^previous-version.*/previous-version = $PREV_VERSION/" ig.ini
else else
# Ensure newline before appending
echo "" >> ig.ini
echo "previous-version = $PREV_VERSION" >> ig.ini echo "previous-version = $PREV_VERSION" >> ig.ini
fi fi
fi fi