From 9189325b9ee0e019cfcbf198ce553094eb704450 Mon Sep 17 00:00:00 2001 From: Ondrej Vlach Date: Sat, 25 Jan 2025 15:26:53 +0100 Subject: [PATCH] output image ref --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 582e810..560bf5f 100644 --- a/action.yml +++ b/action.yml @@ -30,6 +30,9 @@ outputs: image_version: description: "Image version" value: ${{ steps.git.outputs.short_hash }} + image_ref: + description: "Image ref" + value: ${{ steps.image.outputs.version }} runs: using: "composite" steps: @@ -46,7 +49,7 @@ runs: shell: sh - name: Store image version id: image - run: echo "::set-output name=version::${{ inputs.image_name }}:${{inputs.docker_version_prefix}}-${{ steps.git.outputs.short_hash }}" + run: echo "::set-output name=version::'${{ inputs.image_name }}:${{inputs.docker_version_prefix}}-${{ steps.git.outputs.short_hash }}'" shell: sh - name: Build additional args (version etc.) id: additional_args