mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 04:09:03 +00:00
fix: update TAG assignment in release-dev workflow to extract version from package.json
- Changed TAG assignment from a static value to dynamically retrieve the version from package.json using grep and cut.
This commit is contained in:
parent
130a470f01
commit
7a7cb03e7e
1 changed files with 1 additions and 5 deletions
6
.github/workflows/release-dev.yml
vendored
6
.github/workflows/release-dev.yml
vendored
|
|
@ -43,11 +43,7 @@ jobs:
|
|||
BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
BRANCH="${{ github.ref_name }}"
|
||||
FULL_SHA="${{ github.sha }}"
|
||||
TAG="null"
|
||||
|
||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||
TAG="${{ github.ref_name }}"
|
||||
fi
|
||||
TAG=$(grep -m1 '"version":' package.json | cut -d'"' -f4)
|
||||
|
||||
COMMIT_URL="https://github.com/${{ github.repository }}/commit/$SHORT_SHA"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue