Skip to content

Commit e846c43

Browse files
committed
fix conditional, try to fix quotes
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
1 parent e30e4fb commit e846c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
- name: Prepare variables
192192
id: prep
193193
run: |
194-
echo "version=$(cat ./distributions/${{ inputs.distribution }}/dist/**/metadata.json | jq '.version')" >> "$GITHUB_OUTPUT"
194+
echo "version=$(cat ./distributions/${{ inputs.distribution }}/dist/**/metadata.json | jq -r '.version')" >> "$GITHUB_OUTPUT"
195195
echo "types=$(cat ./distributions/${{ inputs.distribution }}/dist/**/artifacts.json | jq '[.[].type]' | tr -d '\n' )" >> "$GITHUB_OUTPUT"
196196
197197
os=$(cat ./distributions/${{ inputs.distribution }}/dist/**/artifacts.json | jq -r '.[] | select(.name | contains(".tar.gz")) | .goos')
@@ -208,7 +208,7 @@ jobs:
208208
echo 'Images?: ${{ steps.prep.outputs.container-images }}'
209209
210210
- name: Build container images locally
211-
if: contains('Docker Image', 'Docker Image')
211+
if: contains(steps.prep.outputs.types, 'Docker Image')
212212
uses: docker/build-push-action@0adf9959216b96bec444f325f1e493d4aa344497 # v6.14.0
213213
with:
214214
context: ./distributions/${{ inputs.distribution }}

0 commit comments

Comments
 (0)