File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 8383 path : base_branch
8484 - name : check version bump
8585 if : ${{ github.event_name == 'push' }}
86- id : check_ver
87- 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
91- echo "::set-output name=new_version::$NEW_VER"
92- fi
86+ # id: check_ver
87+ run : ./.github/workflows/check_ver.sh
88+
9389
9490 publish :
9591 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ NEW_VER = " $( cat Cargo.toml | sed -nE " s/^version.*\" ([0-9a-z.\-]+)\" .*$/\1/p" ) "
4+ BASE_VER = " $( cat base_branch/Cargo.toml | sed -nE " s/^version.*\" ([0-9a-z.\-]+)\" .*$/\1/p" ) "
5+ if [[ " $NEW_VER " != " $BASE_VER " ]] then
6+ echo " ::set-output name=new_version::$NEW_VER "
7+ fi
You can’t perform that action at this time.
0 commit comments