Skip to content

Commit 8b83bdc

Browse files
committed
Fix: workflow deps.
1 parent dd6c91a commit 8b83bdc

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
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
@@ -62,7 +63,15 @@ jobs:
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)

0 commit comments

Comments
 (0)