From 14e7db3c9fbdc32eab92b660bd8f1fc185712b93 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Wed, 15 May 2024 11:29:56 +0300 Subject: [PATCH] ci: try fixup tag output --- .github/actions/prepare/action.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/actions/prepare/action.yaml b/.github/actions/prepare/action.yaml index 5c7614a..760811d 100644 --- a/.github/actions/prepare/action.yaml +++ b/.github/actions/prepare/action.yaml @@ -5,8 +5,8 @@ outputs: description: "Matrix of platforms and runner to use" value: ${{ steps.setup_platforms.outputs.platforms }} tag: - description: "Tags for the docker image" - value: ${{ fromJSON(steps.meta.outputs.json).tags[0] }} + description: "Tag for the docker image" + value: ${{ steps.set_tag.outputs.tag }} runs: using: "composite" steps: @@ -41,10 +41,8 @@ runs: type=ref,event=branch type=ref,event=pr type=semver,pattern={{version}} - - name: debug - id: debug + - name: Set tag + id: set_tag shell: bash run: | - echo "${{ steps.meta.outputs.tags }}" - echo "${{ steps.meta.outputs.tags[0] }}" - echo "${{ fromJSON(steps.meta.outputs.json).tags[0] }}" + echo "tag=${{ fromJSON(steps.meta.outputs.json).tags[0] }}" >> $GITHUB_OUTPUT