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 0e0c2b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/antlr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ jobs:
path: base_branch
- name: check version bump
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
echo "::set-output name=new_version::$NEW_VER"
fi
# id: check_ver
run: ./.github/workflows/check_ver.sh


publish:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/check_ver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

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

0 comments on commit 0e0c2b1

Please sign in to comment.