Fixed version number
This commit is contained in:
parent
50b3b50e07
commit
f79af61bb5
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -46,11 +46,11 @@ jobs:
|
|||||||
tag:
|
tag:
|
||||||
name: Git Tag
|
name: Git Tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine/git
|
container: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Git Tag
|
- name: Git Tag
|
||||||
run: |
|
run: |
|
||||||
git clone -b "${{github.ref_name}}" "${{github.server_url%%://*}}://${{github.token}}@${{github.server_url#*://}}/${{github.repository}}.git" .
|
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
VERSION="$(cat package.json | grep 'version' | grep -Eo '([0-9]+\.?)+(-[0-9a-zA-Z\-\.]+)?')"
|
VERSION="$(cat package.json | grep 'version' | grep -Eo '([0-9]+\.?)+(-[0-9a-zA-Z\-\.]+)?')"
|
||||||
|
|
||||||
git tag -f $VERSION ${{github.sha}}
|
git tag -f $VERSION ${{github.sha}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user