Skip to content

Commit 3c36c28

Browse files
committed
fix CICD
1 parent 2eef577 commit 3c36c28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/antlr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ jobs:
8585
if: ${{ github.event_name == 'push' }}
8686
id: check_ver
8787
run: |
88-
NEW_VER = $(cat Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p")
89-
BASE_VER = $(cat base_branch/Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p")
90-
if [[ "$s1" != "$s2" ]] then
88+
NEW_VER=$(cat Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p")
89+
BASE_VER=$(cat base_branch/Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p")
90+
if [[ "$NEW_VER" != "$BASE_VER" ]]; then
9191
echo "::set-output name=new_version::$NEW_VER"
9292
fi
9393
94+
9495
publish:
9596
runs-on: ubuntu-latest
9697
if: |

0 commit comments

Comments
 (0)