TEMP: update version prefix to handle last month correctly

This commit is contained in:
Pranav C
2025-11-03 11:45:51 +05:30
parent bbc0246a90
commit 749c1f8cc7

View File

@@ -125,7 +125,11 @@ jobs:
- name: Set NocoDB version
run: |
# Generate date components
VERSION_PREFIX=$(date +%Y.%m)
if date -d "last month" +%Y.%m >/dev/null 2>&1; then
VERSION_PREFIX=$(date -d "last month" +%Y.%m)
else
VERSION_PREFIX=$(date -v-1m +%Y.%m)
fi
# Use provided suffix
SUFFIX="${{ inputs.versionSuffix }}"
# Combine prefix and suffix to create final version