Skip to content

Commit 17e3472

Browse files
authored
Update regex for stable tag detection in workflow
1 parent 5a5fd8e commit 17e3472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/pypi-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
python - <<'PY'
6262
import os, re
6363
tag=os.environ.get("GITHUB_REF_NAME","")
64-
stable=bool(re.fullmatch(r"v\d+\.\d+\.\d+", tag))
64+
stable=bool(re.fullmatch(r"v\d+\.\d+\.\d+(?:\.post\d+)?", tag))
6565
print(f"tag={tag} stable={stable}")
6666
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
6767
f.write(f"stable={'true' if stable else 'false'}\n")

0 commit comments

Comments
 (0)