Skip to content

Commit 66b905a

Browse files
committed
ci: fix snapshot check
1 parent 51bbb70 commit 66b905a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/actions/version/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ runs:
3838
shell: bash
3939
run: |
4040
version=`cat ${{inputs.version-file}} | dasel -i toml '${{inputs.version-path}}'`
41-
echo "version=${version}" >> $GITHUB_OUTPUT
42-
echo "snapshot=${{contains(version, 'SNAPSHOT')}} >> $GITHUB_OUTPUT
43-
cat $GITHUB_OUTPUT
41+
42+
if [[ "$version" == *"SNAPSHOT"* ]]; then
43+
snapshot="true"
44+
else
45+
snapshot="false"
46+
fi
47+
48+
echo "version=${version}" >> "$GITHUB_OUTPUT"
49+
echo "snapshot=${snapshot}" >> "$GITHUB_OUTPUT"
50+
51+
cat "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)