Browse Source

chore(action): extract current version from package.json

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4872/head
Pranav C 2 years ago
parent
commit
c1232a31f2
  1. 2
      .github/workflows/release-nightly-dev.yml

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

@ -21,7 +21,7 @@ jobs:
TAG_NAME=${CURRENT_DATE}-${CURRENT_TIME}
IS_DAILY='Y'
# Get current version
CURRENT_VERSION=$(curl -fs https://docs.nocodb.com/releases | grep article | grep div | grep h2 | grep 'id\="[^"]*' -o | cut -c 5-)
CURRENT_VERSION=$(cat ./packages/nocodb/package.json | jq -r ".version")
# Set the tag
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
IS_DAILY='N'

Loading…
Cancel
Save