Skip to content

Commit

Permalink
ci: try fixup tag output
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet committed May 15, 2024
1 parent 282143a commit 14e7db3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/actions/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 14e7db3

Please sign in to comment.