adjust awk script
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 6s Details

This commit is contained in:
mightypanders 2023-06-24 02:05:01 +02:00
parent be3ee5e493
commit 0560c4620c
1 changed files with 1 additions and 1 deletions

View File

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