Skip to content

Commit

Permalink
fix CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
rrevenantt committed Aug 16, 2021
1 parent 2eef577 commit 3c36c28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/antlr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 3c36c28

Please sign in to comment.