diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml index 7bd5455..d228a6a 100644 --- a/.gitea/workflows/test-build.yaml +++ b/.gitea/workflows/test-build.yaml @@ -21,4 +21,4 @@ jobs: - name: Build Container run: echo "${{ env.VERSION }}" #docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}" . env: - version: "${{ cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' }}" + version: "${{ cat package.json | awk 'match($0, /version/) {print $2}' | sed 's/[\",]//g' }}"