Skip to content

Commit c3e7128

Browse files
committed
Simplified version comparison
1 parent 75007ae commit c3e7128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-to-cws-on-chromium-bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
CURRENT_VER=$(cat chromium/extension/manifest.json | grep '"version"' | sed -E 's/.*"version": "(.*)".*/\1/')
2222
PREV_VER=$(git show HEAD^:chromium/extension/manifest.json | grep '"version"' | sed -E 's/.*"version": "(.*)".*/\1/')
23-
if [ "$(printf '%s\n' "$PREV_VER" "$CURRENT_VER" | sort -V | head -n 1)" != "$CURRENT_VER" ] ; then
23+
if [ "$CURRENT_VER" != "$PREV_VER" ] ; then
2424
echo "Extension updated from $PREV_VER to $CURRENT_VER"
2525
echo "VERSION_CHANGED=true" >> $GITHUB_ENV
2626
else echo "VERSION_CHANGED=false" >> $GITHUB_ENV ; fi

0 commit comments

Comments
 (0)