mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +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")
|
BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
BRANCH="${{ github.ref_name }}"
|
BRANCH="${{ github.ref_name }}"
|
||||||
FULL_SHA="${{ github.sha }}"
|
FULL_SHA="${{ github.sha }}"
|
||||||
TAG="null"
|
TAG=$(grep -m1 '"version":' package.json | cut -d'"' -f4)
|
||||||
|
|
||||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
|
||||||
TAG="${{ github.ref_name }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
COMMIT_URL="https://github.com/${{ github.repository }}/commit/$SHORT_SHA"
|
COMMIT_URL="https://github.com/${{ github.repository }}/commit/$SHORT_SHA"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue