Skip to content

Commit

Permalink
Fotmat set_version.sh, move waiting statement, fix TAG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 17, 2023
1 parent d2c9360 commit a2a2615
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions devtools/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ git add "$CARGO_TOML" "$CARGO_LOCK"
git commit -m "Set libwasmvm version: $NEW"
git push

while true ; do
sleep 30
while true; do
echo "Waiting for library build commit ..."
sleep 45
git pull
if git log --oneline | head -n 1 | grep "[skip ci] Built release libraries" ; then
TAG="v$VERSION"
if git log --oneline | head -n 1 | grep "[skip ci] Built release libraries"; then
TAG="v$NEW"
git tag "$TAG"
echo "Tag $TAG created. Please review and git push --tags"
exit 0
else
echo "Waiting for library build commit ..."
fi
done

0 comments on commit a2a2615

Please sign in to comment.