File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ jobs:
22
22
- uses : actions/setup-python@v5
23
23
with :
24
24
python-version : " 3.12"
25
+ - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
25
26
- name : Install dependencies
26
27
id : set-version
27
28
run : |
28
29
VERSION=$(grep version pyproject.toml | cut -d= -f2 | tr -d '[:blank:]' | tr -d '"')
29
- [ $GITHUB_EVENT_NAME == 'push' ] && VERSION+=b && VERSION+=$(($(git tag -l "*$VERSION*" | cut -db -f2 | sort -n | tail -1)+1))
30
+ VERSION+=b && VERSION+=$(($(git tag -l "*$VERSION*" | cut -db -f2 | sort -n | tail -1)+1))
30
31
[ $GITHUB_EVENT_NAME == 'release' ] && VERSION=${{ github.event.release.tag_name }} && VERSION=${VERSION/v/}
31
32
echo VERSION = $VERSION
32
33
sed -ie "s/version = .*/version = \"$VERSION\"/" pyproject.toml
You can’t perform that action at this time.
0 commit comments