Browse Source

Merge pull request #4872 from nocodb/chore/timely-executable-build

chore(action): extract current version from package.json
pull/4891/head
Pranav C 2 years ago committed by GitHub
parent
commit
a5a3bf5a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .github/workflows/release-nightly-dev.yml

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

@ -12,6 +12,11 @@ jobs:
set-tag:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
ref: ${{ github.ref }}
- name: set-tag
id: tag-step
run: |
@ -21,7 +26,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