Fixed version number
Some checks failed
Build Container / Git Tag (push) Successful in 3s
Build Container / Build Container (push) Failing after 15s

This commit is contained in:
Zakary Timson 2025-04-17 11:42:01 -04:00
parent 50b3b50e07
commit f79af61bb5

View File

@ -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}}