adjust env method
All checks were successful
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 7s

This commit is contained in:
mightypanders 2023-06-24 02:08:26 +02:00
parent 4f6d4f646a
commit 73741230b1

View File

@ -21,6 +21,4 @@ jobs:
- name: Build Container - name: Build Container
run: echo "${{ env.VERSION }}" #docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}" . run: echo "${{ env.VERSION }}" #docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}" .
env: env:
version: "${{ 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')
- name: echo version
run: echo $(cat package.json | awk 'match($0, /version/) {print $2}' | sed 's/[\",]//g')