Fix circuit tag parsing.

This commit is contained in:
Alejandro Cabeza Romero 2025-09-01 17:52:27 +02:00
parent 36c647f85e
commit f10e966591
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -23,7 +23,7 @@ jobs:
env:
# Use the tag name if it is available, otherwise use the input version.
# If neither is available, default to the commit hash.
TAG: ${{ github.events.release.tag_name || inputs.tag || 'circom_circuits-v0.0.0' }}
TAG: ${{ (github.ref_type == 'tag' && github.ref_name) || inputs.tag || '' }}
run: |
if [ -z "$TAG" ]; then
echo "Could not determine tag."