diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml
index 3f33de3..df52e0b 100644
--- a/.forgejo/workflows/build.yaml
+++ b/.forgejo/workflows/build.yaml
@@ -29,12 +29,17 @@ jobs:
 
       - name: Get version with git describe
         id: version
-        run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
+        run: |
+          echo "version=$(git describe)" >> $GITHUB_OUTPUT
+          echo "$VERSION"
 
-      - name: Version
+      - name: Check if the container should be built
+        id: builder
         env:
-          VERSION: ${{ steps.version.outputs.version }}
-        run: echo "$VERSION"
+          RUN: ${{ toJSON(inputs.build || !contains(steps.version.outputs.version, '-')) }}
+        run: |
+          echo "run=$RUN" >> $GITHUB_OUTPUT
+          echo "Run build: $RUN"
 
       - name: Set the version in pyproject.toml (workaround for uv not supporting dynamic version)
         if: fromJSON(steps.builder.outputs.run)
diff --git a/pyproject.toml b/pyproject.toml
index 0d806b1..36fed63 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,7 @@
 [project]
 name = "oidc-fastapi-test"
 version = "0.0.0"
+# dynamic = ["version"]
 description = "Add your description here"
 readme = "README.md"
 requires-python = ">=3.13"