Skip to content

Commit

Permalink
Merge pull request #4872 from nocodb/chore/timely-executable-build
Browse files Browse the repository at this point in the history
chore(action): extract current version from package.json
  • Loading branch information
pranavxc committed Jan 18, 2023
2 parents 90a59e3 + 8841f8d commit a5a3bf5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release-nightly-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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'
Expand Down

0 comments on commit a5a3bf5

Please sign in to comment.