|
|
@ -26,13 +26,13 @@ jobs: |
|
|
|
# Get current date |
|
|
|
# Get current date |
|
|
|
CURRENT_DATE=$(date +"%Y%m%d") |
|
|
|
CURRENT_DATE=$(date +"%Y%m%d") |
|
|
|
CURRENT_TIME=$(date +"%H%M") |
|
|
|
CURRENT_TIME=$(date +"%H%M") |
|
|
|
TAG_NAME=${CURRENT_DATE}-${CURRENT_TIME} |
|
|
|
TAG_NAME=${CURRENT_DATE} |
|
|
|
IS_DAILY='Y' |
|
|
|
IS_DAILY='Y' |
|
|
|
# Get current version |
|
|
|
# Get current version |
|
|
|
CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) |
|
|
|
CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) |
|
|
|
# Set the tag |
|
|
|
# Set the tag |
|
|
|
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then |
|
|
|
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then |
|
|
|
TAG_NAME=${TAG_NAME} |
|
|
|
TAG_NAME=${CURRENT_DATE}-${CURRENT_TIME} |
|
|
|
IS_DAILY='N' |
|
|
|
IS_DAILY='N' |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo "::set-output name=NIGHTLY_BUILD_TAG::${TAG_NAME}" |
|
|
|
echo "::set-output name=NIGHTLY_BUILD_TAG::${TAG_NAME}" |
|
|
|