From 73741230b148258547ae2907277e7ee52fab193c Mon Sep 17 00:00:00 2001 From: mightypanders Date: Sat, 24 Jun 2023 02:08:26 +0200 Subject: [PATCH] adjust env method --- .gitea/workflows/test-build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml index a3ce3ca..4ee699b 100644 --- a/.gitea/workflows/test-build.yaml +++ b/.gitea/workflows/test-build.yaml @@ -21,6 +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 | awk 'match($0, /version/) {print $2}' | sed 's/[\",]//g' }}" - - name: echo version - run: echo $(cat package.json | awk 'match($0, /version/) {print $2}' | sed 's/[\",]//g') + version: $(cat package.json | awk 'match($0, /version/) {print $2}' | sed 's/[\",]//g')