Browse Source

fix: include time in tag as now it's triggered every 6 hours

pull/1938/head
Wing-Kam Wong 3 years ago
parent
commit
d428764b3d
  1. 4
      .github/workflows/release-nightly-dev.yml

4
.github/workflows/release-nightly-dev.yml

@ -18,19 +18,17 @@ 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} TAG_NAME=${CURRENT_DATE}-${CURRENT_TIME}
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=${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}"
echo "::set-output name=IS_DAILY::${IS_DAILY}" echo "::set-output name=IS_DAILY::${IS_DAILY}"
echo "::set-output name=CURRENT_VERSION::${CURRENT_VERSION}" echo "::set-output name=CURRENT_VERSION::${CURRENT_VERSION}"
# Verify the tag
- name: verify-tag - name: verify-tag
run: | run: |
echo ${{ steps.tag-step.outputs.NIGHTLY_BUILD_TAG }} echo ${{ steps.tag-step.outputs.NIGHTLY_BUILD_TAG }}

Loading…
Cancel
Save