From 3c36c287aa300033e5609377bf3ba96247a74a85 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Mon, 16 Aug 2021 13:58:17 +0300 Subject: [PATCH] fix CICD --- .github/workflows/antlr.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/antlr.yml b/.github/workflows/antlr.yml index 0f5bbb4..f95b238 100644 --- a/.github/workflows/antlr.yml +++ b/.github/workflows/antlr.yml @@ -85,12 +85,13 @@ jobs: if: ${{ github.event_name == 'push' }} id: check_ver run: | - NEW_VER = $(cat Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p") - BASE_VER = $(cat base_branch/Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p") - if [[ "$s1" != "$s2" ]] then + NEW_VER=$(cat Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p") + BASE_VER=$(cat base_branch/Cargo.toml | sed -nE "s/^version.*\"([0-9a-z.\-]+)\".*$/\1/p") + if [[ "$NEW_VER" != "$BASE_VER" ]]; then echo "::set-output name=new_version::$NEW_VER" fi + publish: runs-on: ubuntu-latest if: |