From 41b517b4eff7732d1b0678c377390ec8e2f47ca7 Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Wed, 6 Mar 2024 10:55:24 +0300 Subject: [PATCH] Update action.yml to use the 'set_tag' output Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 892f1d9..d34b9bc 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,7 @@ inputs: outputs: tag: description: "Image Tag" - value: ${{ steps.meta.outputs.tags[0] }} + value: ${{ steps.set_tag.outputs.tag }} tags: description: "Image Tags" value: ${{ steps.meta.outputs.tags }} @@ -75,3 +75,8 @@ runs: cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache build-args: ${{ inputs.build-args }} secrets: ${{ inputs.build-secrets }} + + - name: Set Tag + id: set_tag + shell: bash + run: echo "tag=${{ steps.meta.outputs.tags[0] }}" >> $GITHUB_OUTPUT