Skip to content

Commit cb7c147

Browse files
committed
chore(ci): fix ci
1 parent 42df366 commit cb7c147

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/push.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ jobs:
6565
cd app
6666
APP_VERSION=$(node -e 'console.log(require("./package.json").version)')
6767
68-
if [ ${{ github.repository }} = "dream-num/univer-go" ]; then
68+
if [ "${{ github.repository }}" = "dream-num/univer-go" ]; then
6969
echo "version=${APP_VERSION}" >> $GITHUB_OUTPUT
7070
else
7171
COMMIT_HASH=$(git rev-parse --short=7 HEAD)
72-
7372
# get dev release count
74-
DEV_RELEASES=$(gh release list -R ${{ github.repository }} --limit 100 | grep "${APP_VERSION}-dev" | wc -l)
73+
DEV_RELEASES=$(gh release list -R ${{ github.repository }} --limit 100 | grep "${APP_VERSION}-dev" | wc -l || true)
7574
BUILD_NUMBER=$((DEV_RELEASES + 1))
7675
7776
echo "version=${APP_VERSION}-dev.${BUILD_NUMBER}-${COMMIT_HASH}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)