From e7bd2ad84fbab4f2ddab2c4df2ea70178080aab7 Mon Sep 17 00:00:00 2001 From: Amit Sharma Date: Tue, 5 Dec 2023 23:00:52 +0530 Subject: [PATCH] Fixing python publish workflow to run after version tag is created (#1100) fixed workflow to include tags and fixed pyproject to output the latest tag version Signed-off-by: Amit Sharma --- .github/workflows/python-publish.yml | 2 ++ pyproject.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 887ea7ae4f..91d130b8c5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,6 +17,8 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python 3.9 uses: actions/setup-python@v4 diff --git a/pyproject.toml b/pyproject.toml index 21dbcbadae..d9b7b20a44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,8 @@ build-backend = "poetry.core.masonry.api" [tool.poetry-dynamic-versioning] enable = true vcs = "git" +metadata = false +format = "{base}" [tool.poetry-dynamic-versioning.substitution] files = ["dowhy/__init__.py"]