Skip to content

Commit accf769

Browse files
committed
Changed regex
1 parent 5ad9141 commit accf769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-to-pypi-on-new-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
TAG="${GITHUB_REF_NAME}"
2323
echo "The tag is: $TAG"
24-
PROJECT=$(echo "$TAG" | sed -E 's/-[0-9].*$//') # e.g. computer-languages-1.2.3 -> computer-languages
24+
PROJECT=$(echo "$TAG" | sed -E 's/-\d+(\.\d+)+$//') # e.g. sys-lang-1.0.4 -> sys-lang
2525
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
2626
echo "Project directory is: $PROJECT"
2727
- run: pip install build

0 commit comments

Comments
 (0)