File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 - name : Install dependencies
3232 run : |
3333 python -m pip install --upgrade pip
34+ pip install -r requirements.txt -r test-requirements.txt
3435 pip install build pytest
3536
3637 - name : Build package
6263 MAJOR=0; MINOR=0; PATCH=0
6364 fi
6465
65- COMMITS=$(git log ${LATEST_TAG}..HEAD --first-parent --pretty=format:"%s")
66+ if [ "$LATEST_TAG" = "v0.0.0" ]; then
67+ COMMITS=$(git log --first-parent --pretty=format:"%s")
68+ else
69+ COMMITS=$(git log ${LATEST_TAG}..HEAD --first-parent --pretty=format:"%s")
70+ fi
71+ if [ -z "$COMMITS" ]; then
72+ echo "should_release=false" >> $GITHUB_OUTPUT
73+ exit 0
74+ fi
6675 BREAKING=$(echo "$COMMITS" | grep -i "BREAKING CHANGE" || true)
6776 FEAT=$(echo "$COMMITS" | grep -iE "^feat(\(|:)" || true)
6877 FIX=$(echo "$COMMITS" | grep -iE "^fix(\(|:)" || true)
You can’t perform that action at this time.
0 commit comments