Fixed extracting version number during build
This commit is contained in:
parent
e1f22a01a6
commit
ad4194a981
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -62,7 +62,7 @@ jobs:
|
||||
- name: Get Version Number
|
||||
shell: sh
|
||||
run: |
|
||||
[[ -f server/package.json ]] && echo "VERSION=$(cat server/package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
|
||||
[[ -f package.json ]] && echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
|
||||
|
||||
- name: Push with branch tag
|
||||
uses: ztimson/actions/docker/push@develop
|
||||
|
Loading…
Reference in New Issue
Block a user