Skip to content

Commit

Permalink
chore(ci): fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 committed Dec 30, 2024
1 parent 42df366 commit cb7c147
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@ jobs:
cd app
APP_VERSION=$(node -e 'console.log(require("./package.json").version)')
if [ ${{ github.repository }} = "dream-num/univer-go" ]; then
if [ "${{ github.repository }}" = "dream-num/univer-go" ]; then
echo "version=${APP_VERSION}" >> $GITHUB_OUTPUT
else
COMMIT_HASH=$(git rev-parse --short=7 HEAD)
# get dev release count
DEV_RELEASES=$(gh release list -R ${{ github.repository }} --limit 100 | grep "${APP_VERSION}-dev" | wc -l)
DEV_RELEASES=$(gh release list -R ${{ github.repository }} --limit 100 | grep "${APP_VERSION}-dev" | wc -l || true)
BUILD_NUMBER=$((DEV_RELEASES + 1))
echo "version=${APP_VERSION}-dev.${BUILD_NUMBER}-${COMMIT_HASH}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit cb7c147

Please sign in to comment.