Actions: Fixing git url
All checks were successful
Build Container / Build Container (push) Successful in 2s
Build Container / Git Tag (push) Successful in 2s

This commit is contained in:
Zakary Timson 2025-04-17 11:10:49 -04:00
parent 969ccb88f8
commit 7d714cb406

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
- name: Build Container - name: Build Container
run: | run: |
git clone -b "${{github.ref_name}}" "https://${{github.token}}@${{github.server_url}}/${{github.repository}}.git" . git clone -b "${{github.ref_name}}" "${{github.server_url%%://*}}://${{github.token}}@${{github.server_url#*://}}/${{github.repository}}.git" .
REGISTRY="$(echo ${{github.server_url}} | sed s%http://%% | sed s%https://%% )" REGISTRY="$(echo ${{github.server_url}} | sed s%http://%% | sed s%https://%% )"
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\-\.]+)?')"
@ -36,7 +36,7 @@ jobs:
steps: steps:
- name: Git Tag - name: Git Tag
run: | run: |
git clone -b "${{github.ref_name}}" "https://${{github.token}}@${{github.server_url}}/${{github.repository}}.git" . git clone -b "${{github.ref_name}}" "${{github.server_url%%://*}}://${{github.token}}@${{github.server_url#*://}}/${{github.repository}}.git" .
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}}