We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42df366 commit cb7c147Copy full SHA for cb7c147
1 file changed
.github/workflows/push.yml
@@ -65,13 +65,12 @@ jobs:
65
cd app
66
APP_VERSION=$(node -e 'console.log(require("./package.json").version)')
67
68
- if [ ${{ github.repository }} = "dream-num/univer-go" ]; then
+ if [ "${{ github.repository }}" = "dream-num/univer-go" ]; then
69
echo "version=${APP_VERSION}" >> $GITHUB_OUTPUT
70
else
71
COMMIT_HASH=$(git rev-parse --short=7 HEAD)
72
-
73
# get dev release count
74
- 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)
75
BUILD_NUMBER=$((DEV_RELEASES + 1))
76
77
echo "version=${APP_VERSION}-dev.${BUILD_NUMBER}-${COMMIT_HASH}" >> $GITHUB_OUTPUT
0 commit comments