Skip to content

Commit e9fe6bd

Browse files
committed
Fixing latest definition reference - output is being double wrapped
1 parent 0d6434c commit e9fe6bd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/buildAndPub.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
id: latest-version
8484
with:
8585
compact: true
86+
raw-output: true
8687
input: config.json
8788
script: 'sort_by(.major) | reverse | group_by(.major) | map(.[0]) | sort_by(.major) | reverse | .[0].version'
8889

@@ -147,8 +148,10 @@ jobs:
147148
run: |
148149
if [ "${{ matrix.tag.version }}" = "${{ needs.prepare-matrix.outputs.latest }}" ]; then
149150
echo "IS_LATEST=true" >> $GITHUB_OUTPUT
151+
echo "This is the latest version"
150152
else
151153
echo "IS_LATEST=false" >> $GITHUB_OUTPUT
154+
echo "This is not the latest version"
152155
fi
153156
154157
- name: Build
@@ -196,8 +199,10 @@ jobs:
196199
run: |
197200
if [ "${{ matrix.tag.version }}" = "${{ needs.prepare-matrix.outputs.latest }}" ]; then
198201
echo "IS_LATEST=true" >> $GITHUB_OUTPUT
202+
echo "This is the latest version"
199203
else
200204
echo "IS_LATEST=false" >> $GITHUB_OUTPUT
205+
echo "This is not the latest version"
201206
fi
202207
203208
- name: Build and push devcontainer image

0 commit comments

Comments
 (0)