Skip to content

Commit 2c4994c

Browse files
committed
fix(ci): correctly check for version info
It is now stored in pyproject.toml.
1 parent 3d95a29 commit 2c4994c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: github.event_name == 'release'
2020
run: |
2121
CURRENT_TAG=${GITHUB_REF#refs/tags/}
22-
CURRENT_VERSION=$(head -n1 social_core/__init__.py | awk '{print $3}' | sed 's/[^0-9\.]//g')
22+
CURRENT_VERSION=$(sed -n 's/version = "\(.*\)"/\1/p' pyproject.toml)
2323
if [ "${CURRENT_VERSION}" != "${CURRENT_TAG}" ]; then
2424
echo "========================================================================"
2525
echo "Error: tag '${CURRENT_TAG}' and version '${CURRENT_VERSION}' don't match"

0 commit comments

Comments
 (0)